module System.Logger.Class
( MonadLogger (..)
, trace
, debug
, info
, warn
, err
, fatal
, L.Level (..)
, L.Output (..)
, L.Settings (..)
, L.Logger
, L.DateFormat
, L.new
, L.create
, L.defSettings
, L.iso8601UTC
, module M
)
where
import System.Logger (Level (..))
import System.Logger.Message as M
import qualified System.Logger as L
class Monad m => MonadLogger m where
log :: Level -> (Msg -> Msg) -> m ()
trace, debug, info, warn, err, fatal :: MonadLogger m => (Msg -> Msg) -> m ()
trace = System.Logger.Class.log Trace
debug = System.Logger.Class.log Debug
info = System.Logger.Class.log Info
warn = System.Logger.Class.log Warn
err = System.Logger.Class.log Error
fatal = System.Logger.Class.log Fatal