log4hs-0.9.0.0: A python logging style log library

Safe HaskellNone
LanguageHaskell2010

Logging.Monad.TH.Context

Description

A contextual version of Logging.Monad.TH.

Logging with context is very usefull for tracking issues through log records or analyzing log records through other tools. It also provides a solution to custom record fields other than LogRecord's fileds.

For example, by using the following Format1, a line of json string will be written to a file or printed to the stderr.

"{{\"logger\": \"{logger}\", \"context\": {context}}}"

Since: 0.8.0

Synopsis

Documentation

logv :: ExpQ Source #

Log "message" with the severity "level".

The missing type signature: (MonadIO m, IsMessage s, ToJSON c) => Logger -> Level -> s -> c -> LoggingT m ()

debug :: ExpQ Source #

Log "message" with a specific severity.

The missing type signature: (MonadIO m, IsMessage s, ToJSON c) => Logger -> s -> c -> LoggingT m ()

info :: ExpQ Source #

Log "message" with a specific severity.

The missing type signature: (MonadIO m, IsMessage s, ToJSON c) => Logger -> s -> c -> LoggingT m ()

warn :: ExpQ Source #

Log "message" with a specific severity.

The missing type signature: (MonadIO m, IsMessage s, ToJSON c) => Logger -> s -> c -> LoggingT m ()

error :: ExpQ Source #

Log "message" with a specific severity.

The missing type signature: (MonadIO m, IsMessage s, ToJSON c) => Logger -> s -> c -> LoggingT m ()

fatal :: ExpQ Source #

Log "message" with a specific severity.

The missing type signature: (MonadIO m, IsMessage s, ToJSON c) => Logger -> s -> c -> LoggingT m ()