@hackage heavy-logger0.1.0.0

Full-weight logging based on fast-logger

heavy-logger README

This is Haskell logging library, which prefers functionality and extendability over light weight and simplicity. It can use fast-logger as backend and is compatible with monad-logger interface, so it can be used in WAI projects. heavy-logger is integrated with text-format-heavy string formatting library.

Most notable features of heavy-logger are:

  • Several backends and possibility to write your own backends. The provided backends are:
    • Fast-logger backend. It allows to write messages to stdout, stderr or arbitrary file.
    • Syslog backend.
    • Chan backend. Writes messages to a Chan, so they can be read from the other side.
  • Possibility to define log message format in the output file. For example, do you want to see event severity level first, and then time, or vice versa?
  • Possibility to easily set up message filtering based on message source and severity level. For example, you may want to write only Info messages, but also Debug messages from one module.
  • Text formatting library integration. Formatting of messages by text-format-heavy is done lazily; so, you can issue a lot of debug messages, that include data that take time to present as a string; the formatting will be executed only in the case when debug output for this module is actually enabled by the filter.