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

[ bsd3, library, system ] [ Propose Tags ]

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 also integrated with text-format-heavy string formatting library.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0, 0.3.0.0, 0.3.1.0, 0.3.2.0, 0.3.2.1, 0.3.2.2
Change log ChangeLog.md
Dependencies attoparsec (>=0.13.1.0), base (>=4.8 && <5.0), bytestring (>=0.10.6), fast-logger (>=2.4.10), hsyslog (>=5), monad-control (>=1.0.1.0), monad-logger (>=0.3.22), mtl (>=2.2.1), template-haskell (>=2.10.0), text (>=1.2.2.1), text-format-heavy (>=0.1.2.0), transformers-base (>=0.4.4) [details]
License BSD-3-Clause
Author Ilya Portnov
Maintainer portnov84@rambler.ru
Category System
Source repo head: git clone https://github.com/portnov/heavy-logger.git
Uploaded by IlyaPortnov at 2017-10-15T12:28:17Z
Distributions
Reverse Dependencies 6 direct, 2 indirect [details]
Downloads 3133 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-10-15 [all 1 reports]

Readme for heavy-logger-0.1.0.0

[back to package description]

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.