Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities for logging.
- withLogMessagePrefix :: (ToLogStr prefix, MonadLoggerIO m) => prefix -> LoggingT m a -> m a
Documentation
withLogMessagePrefix :: (ToLogStr prefix, MonadLoggerIO m) => prefix -> LoggingT m a -> m a Source #
Prefix every log message done from inside the given monad action with the
given prefix. This runs a LoggingT
action inside a MonadLoggerIO
base
monad with a log function that wraps around the log function returned by
askLoggerIO
and prefixes each message with the given prefix.