lumberjack: Trek through your code forest and make logs

[ library, logging, program ] [ Propose Tags ]

This is a logging facility. Yes, there are many, and this is the one with a beard, wearing flannel and boots, that gets the job done. It's not the fanciest, it doesn't have a cargo-van full of features. This logger is designed to be straightforward to use, provide a good set of standard features, and be useable across a broad set of code.

  • Logging itself is a monadic activity. This activity is most often performed in a monad stack with a MonadIO context to allow writing to files.

  • The specific logging action implementations are managed separately from the actions of logging messages in the target code. This allows logging to be configurable and the manner of logging to be specified at startup time without requiring changes in the code from which log messages are being generated.

  • The logging implementation code can use contravariant functors to adjust existing logging.

  • Main code will typically retrieve the logging actions from a Reader context in your monad stack. That said, Log actions are not tied to an enclosing Monad. There are helpers to support a Monad which can store Log actions, but Log actions can also be explicitly passed and used.

  • The prettyprinter package is used for formatting.


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,,,,
Change log
Dependencies base (>=4.11 && <4.20), contravariant (>=1.5 && <1.6), exceptions, lumberjack, mtl, prettyprinter (>=1.6 && <1.8), prettyprinter-ansi-terminal (>= && <1.2), text, time [details]
License ISC
Copyright 2020-2022, Galois Inc.
Author Kevin Quick
Revised Revision 1 made by ryanglscott at 2024-01-18T18:40:46Z
Category Logging
Home page
Bug tracker
Source repo head: git clone
Uploaded by ryanglscott at 2023-07-28T17:14:18Z
Distributions Arch:, LTSHaskell:, NixOS:, Stackage:
Reverse Dependencies 1 direct, 2 indirect [details]
Executables example_log
Downloads 2886 total (48 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-07-28 [all 1 reports]