Simplified logging in IO for application writers.
|LTS Haskell 20.23:||3.0.5|
|Stackage Nightly 2023-05-30:||3.0.5|
|Latest on Hackage:||3.0.5|
Module documentation for 3.0.5
logging is a wrapper around
fast-logger which makes
it easy to log from
IO. It provides the following conveniences on top of
A set of shorter functions to type:
warn, plus others that flush after each message, or which allow providing a message source string.
Logging variants of
traceShowL. These use
unsafePerformIOin order to act as direct replacements, so the usual caveats apply.
A global function,
setDebugLevel, which uses a global
IORefto 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,
timedDebug, which report how long the specified action took to execute in wall-clock time.