logging: Simplified logging in IO for application writers.

[ library, mit, system ] [ Propose Tags ]

logging is a wrapper around fast-logger which makes it easy to log from IO. It provides the following conveniences on top of those libraries:

  • A set of shorter functions to type: debug, log, warn, plus others that flush after each message, or which allow providing a message source string.

  • Logging variants of error, trace and traceShow, called errorL, traceL and traceShowL. These use unsafePerformIO in order to act as direct replacements, so the usual caveats apply.

  • A global function, setDebugLevel, which uses a global IORef to record the logging level, saving you from having to carry around the notion of "verbosity level" in a Reader environment.

  • A set of "timed" variants, timedLog and timedDebug, which report how long the specified action took to execute in wall-clock time.




Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 2.1.0, 2.2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5
Dependencies base (>=3 && <5), binary (>=, bytestring (>=, fast-logger (>=2.1.5), lifted-base (>=, monad-control (>=, old-locale (>=, regex-compat (>=0.95.1), text (>=, time (>=1.4), time-locale-compat (>=, transformers (>= [details]
License MIT
Author John Wiegley, Roy Blankman
Maintainer riblankman@gmail.com
Category System
Source repo head: git clone git://github.com/jwiegley/logging.git
Uploaded by JohnWiegley at 2018-01-29T18:00:21Z
Distributions LTSHaskell:3.0.5, NixOS:3.0.5, Stackage:3.0.5
Reverse Dependencies 7 direct, 0 indirect [details]
Downloads 11110 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 2018-01-29 [all 1 reports]