@hackage logging3.0.1
Simplified logging in IO for application writers.
Categories
License
MIT
Maintainer
johnw@newartisans.com
Links
Versions
Installation
Dependencies (11)
- base >=3 && <5
- binary >=0.5.1.1
- bytestring >=0.9.2.1
- fast-logger >=2.1.5
- lifted-base >=0.2.2.0
- monad-control >=0.3.2.3 Show all…
Dependents (10)
@hackage/sqlcli-odbc, @hackage/simple-logging, @hackage/acme-everything, @hackage/pushme, @hackage/transfer-db, @hackage/c2hsc, Show all…
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,traceandtraceShow, callederrorL,traceLandtraceShowL. These useunsafePerformIOin order to act as direct replacements, so the usual caveats apply.A global function,
setDebugLevel, which uses a globalIORefto 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,
timedLogandtimedDebug, which report how long the specified action took to execute in wall-clock time.