napkin-0.5.12
Safe HaskellNone
LanguageHaskell2010

Napkin.Logging

Synopsis

Documentation

data LogLineFormat #

Constructors

Simple

for interactive terminal

Server

for cron jobs

Json 

data LogOptions #

Instances

Instances details
Eq LogOptions # 
Instance details

Defined in Napkin.Logging

Show 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.09.

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

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

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