Safe Haskell | None |
---|---|
Language | Haskell2010 |
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