| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Monad.Logger.Extras
Description
|
Synopsis
- runLoggerLoggingT :: LoggingT m a -> Logger -> m a
- type LogF = Loc -> LogSource -> LogLevel -> LogStr -> IO ()
- newtype Logger = Logger {}
- logToStderr :: Logger
- logToStdout :: Logger
- logToNowhere :: Logger
- logToSyslog :: String -> Logger
Documentation
runLoggerLoggingT :: LoggingT m a -> Logger -> m a Source #
type LogF = Loc -> LogSource -> LogLevel -> LogStr -> IO () Source #
Type synonym for a logging action. See defaultLogStr for the default
formatting of this data.
logToStderr :: Logger Source #
Composable stderr logging action.
logToStdout :: Logger Source #
Composable stdout logging action.
logToNowhere :: Logger Source #
This logger doesn't perform any logging action.
logToSyslog :: String -> Logger Source #
Log messages to a posix system log. The string argument is a tag that can
be used to identify log messages produced by this logger.
You can, for instance, run journalctl --user -t mytag to see log messages
tagged with "mytag".