Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains default implementation of HasLogBackend
,
HasLogContext
, HasLogger
instances, based on ReaderT
- LoggingT
monad transformer.
Synopsis
- newtype LoggingT m a = LoggingT (ReaderT LoggingTState m a)
- data LoggingTState = LoggingTState {}
- runLoggingT :: LoggingT m a -> LoggingTState -> m a
Documentation
Logging monad transformer.
This is just a default implementation of HasLogging
interface.
Applications are free to use this or another implementation.
LoggingT (ReaderT LoggingTState m a) |
Instances
data LoggingTState Source #
State of LoggingT
monad
Instances
Monad m => MonadReader LoggingTState (LoggingT m) Source # | |
Defined in System.Log.Heavy.LoggingT ask :: LoggingT m LoggingTState # local :: (LoggingTState -> LoggingTState) -> LoggingT m a -> LoggingT m a # reader :: (LoggingTState -> a) -> LoggingT m a # |
runLoggingT :: LoggingT m a -> LoggingTState -> m a Source #
Run logging monad