Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic logging, copied from log-warper (it has too many dependencies).
Documentation
Severity is level of log message importance. It uniquely determines which messages to print.
Debug | Debug messages |
Info | Information |
Notice | Important (more than average) information |
Warning | General warnings |
Error | General errors/severe errors |
initLogging :: Severity -> IO () Source #
Initialise logging state.
logWarning :: MonadIO m => Text -> m () Source #
Shortcuts for logMessage
to use according severity.