Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains definitions for formatting log message to write it to output.
Log message format is defined by using text-format-heavy
syntax. Variables available are:
- level - message severity level
- source - message source (module name)
- location - location from where message was logged (line in source file)
- time - message time
- message - message string itself
- defaultLogFormat :: Format
- formatLogMessage :: Format -> LogMessage -> FormattedTime -> LogStr
Documentation
defaultLogFormat :: Format Source #
Default log message format.
Corresponds to: {time} [{level}] {source}: {message}\n
formatLogMessage :: Format -> LogMessage -> FormattedTime -> LogStr Source #
Format log message for output.