Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Logger
- data LogDest
- data LogConfig = LogConfig {
- bufferSize :: BufSize
- logDest :: LogDest
- initLogger :: (MonadBaseControl IO m, MonadIO m) => LogConfig -> Initializer' m Logger
- logging :: (Has Logger es, MonadExts es m, MonadIO m) => LogStr -> m ()
- data LogWrapper exts m a
- logWrapper :: Monad m => m a -> LogWrapper exts m a
- runLogWrapper :: Extensions exts -> LogWrapper exts m a -> m a
Documentation
configuration
LogConfig | |
|
initialize
initLogger :: (MonadBaseControl IO m, MonadIO m) => LogConfig -> Initializer' m Logger Source #
logger initializer.
action
wrapper
data LogWrapper exts m a Source #
wrapper to use as MonadLogger using Logger Extenson.
Monad m => MonadExts exts (LogWrapper exts m) Source # | |
MonadBaseControl b m => MonadBaseControl b (LogWrapper exts m) Source # | |
MonadBase b m => MonadBase b (LogWrapper exts m) Source # | |
MonadTrans (LogWrapper exts) Source # | |
MonadTransControl (LogWrapper exts) Source # | |
Monad m => Monad (LogWrapper exts m) Source # | |
Functor m => Functor (LogWrapper exts m) Source # | |
Applicative m => Applicative (LogWrapper exts m) Source # | |
MonadIO m => MonadIO (LogWrapper exts m) Source # | |
type StT (LogWrapper exts) a Source # | |
type StM (LogWrapper exts m) a Source # | |
logWrapper :: Monad m => m a -> LogWrapper exts m a Source #
runLogWrapper :: Extensions exts -> LogWrapper exts m a -> m a Source #