heavy-logger-0.1.0.0: Full-weight logging based on fast-logger

Safe HaskellNone
LanguageHaskell2010

System.Log.Heavy.Format

Description

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

Synopsis

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.