micrologger-0.4.0.0: A super simple logging module. Only for use for very simple projects.

Safe HaskellNone
LanguageHaskell2010

LuminescentDreams.Logger.JSON

Description

Generate JSON logs compatible with LogZ.io. logMsgJs and formatMsgJs are both re-exported, so it should not be necessary to import this module directly.

TODO: Rename this to LogZ since it generates fields specific to that service.

Synopsis

Documentation

logMsgJs :: Logger -> LogLevel -> [(String, Value)] -> IO () Source #

Log a message in LogZ format. This uses formatMsgJs to generate the actual format string.

formatMsgJs :: UTCTime -> LogLevel -> [(String, Value)] -> Text Source #

Format a message for LogZ JSON format.