Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class Monad m => MonadLogger (m :: Type -> Type)
- data LoggingT (m :: Type -> Type) a
- runCapturedLoggingT :: MonadUnliftIO m => LoggingT m a -> m (a, [LogLine])
- logLineToText :: LogLine -> Text
Documentation
class Monad m => MonadLogger (m :: Type -> Type) #
A Monad
which has the ability to log messages in some manner.
Instances
data LoggingT (m :: Type -> Type) a #
Monad transformer that adds a new logging function.
Since: monad-logger-0.2.2
Instances
runCapturedLoggingT :: MonadUnliftIO m => LoggingT m a -> m (a, [LogLine]) Source #
Run a LoggingT
, capturing and returning any logged messages alongside
This is runWriterLoggingT
, but we're not able to supply a MonadUnliftIO
instance when using that.
logLineToText :: LogLine -> Text Source #