Safe Haskell | None |
---|---|
Language | GHC2021 |
Unclog
Description
This module reexports everything you need to accompany an import for your choice of logging frontend
The frontend to this library is based on importing a specific logging frontend. Currently there are Control.Effect.Unclog.{Json,Text}
and Unclog.{Json,Text}
for aeson
and text
based logging and use with fused-effects
and MonadUnliftIO
respectively,
exposing functions with the same names, debug
, info
, warn
and fatal
for the four common log levels.
Subscribers watch a channel of logs and are constructed and destructed by the toplevel logging handler, like runUnclogging
or
withLoggingWithSubscribers
. To construct your own subscribers, check out the Subscriber
module, more specifically, the
mkSubscriber
, mkSubscriberSimple
and bracketSubscriber
functions.