logging: Simplified logging in IO for application writers.
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
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
andtraceShow
, callederrorL
,traceL
andtraceShowL
. These useunsafePerformIO
in order to act as direct replacements, so the usual caveats apply.A global function,
setDebugLevel
, which uses a globalIORef
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
andtimedDebug
, which report how long the specified action took to execute in wall-clock time.
Properties
Versions | 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.3, 3.0.4, 3.0.5 |
---|---|
Change log | None available |
Dependencies | 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), old-locale (>=1.0.0.5), regex-compat (>=0.95.1), text (>=0.11.3.1), time (>=1.4), time-locale-compat (>=0.1.1.0), transformers (>=0.3.0.0) [details] |
License | MIT |
Author | John Wiegley |
Maintainer | johnw@newartisans.com |
Category | System |
Source repo | head: git clone git://github.com/jwiegley/logging.git |
Uploaded | by aupiff at 2016-05-15T02:16:12Z |
Modules
[Index]
- Control
Downloads
- logging-3.0.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees