micrologger-0.5.0.0: A super simple logging module.

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

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

Format a message for LogZ JSON format.