napkin-0.5.14
Safe HaskellSafe-Inferred
LanguageGHC2021

Napkin.Logging

Synopsis

Documentation

data LogLineFormat #

Constructors

Simple

for interactive terminal

Server

for cron jobs

Json 

data LogOptions #

Instances

Instances details
Show LogOptions # 
Instance details

Defined in Napkin.Logging

Eq LogOptions # 
Instance details

Defined in Napkin.Logging

simpleFormat :: LogItem a => ItemFormatter a #

Simplified version of the bracketed log format. Only timestamp and debug level are bracketed. For example:

[2022-01-04 16:39:21][Debug] Starting interpreter
[2022-01-04 16:39:23][Debug] Interpreter start performed in 2.09s

timeLog :: Katip m => String -> m b -> m b #

echo :: Katip m => Severity -> LogStr -> m () #

echo' :: (Katip m, LogItem a) => a -> Severity -> LogStr -> m () #

Orphan instances

FromBuilder LogStr # 
Instance details