Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Monad m => MonadLogger m where
- trace :: MonadLogger m => (Msg -> Msg) -> m ()
- debug :: MonadLogger m => (Msg -> Msg) -> m ()
- info :: MonadLogger m => (Msg -> Msg) -> m ()
- warn :: MonadLogger m => (Msg -> Msg) -> m ()
- err :: MonadLogger m => (Msg -> Msg) -> m ()
- fatal :: MonadLogger m => (Msg -> Msg) -> m ()
- data Level
- data Output
- data Settings = Settings {
- logLevel :: Level
- output :: Output
- format :: DateFormat
- delimiter :: ByteString
- bufSize :: BufSize
- data Logger
- data DateFormat
- new :: MonadIO m => Settings -> m Logger
- create :: MonadIO m => Output -> m Logger
- defSettings :: Settings
- iso8601UTC :: DateFormat
Documentation
trace :: MonadLogger m => (Msg -> Msg) -> m () Source
Abbreviation for log
using the corresponding log level.
debug :: MonadLogger m => (Msg -> Msg) -> m () Source
Abbreviation for log
using the corresponding log level.
info :: MonadLogger m => (Msg -> Msg) -> m () Source
Abbreviation for log
using the corresponding log level.
warn :: MonadLogger m => (Msg -> Msg) -> m () Source
Abbreviation for log
using the corresponding log level.
err :: MonadLogger m => (Msg -> Msg) -> m () Source
Abbreviation for log
using the corresponding log level.
fatal :: MonadLogger m => (Msg -> Msg) -> m () Source
Abbreviation for log
using the corresponding log level.
Settings | |
|
create :: MonadIO m => Output -> m Logger Source
Invokes new
with default settings and the given output as log sink.
defSettings :: Settings Source
Default settings for use with new
:
logLevel
=Debug
output
=StdOut
format
=iso8601UTC
delimiter
= ", "bufSize
=defaultBufSize
iso8601UTC :: DateFormat Source
ISO 8601 date-time format.