Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data SinkConfig = SinkConfig {}
- defaultSinkConfig :: SinkConfig
- data LogLevel :: *
- data LogTarget
- toLogSink :: SinkConfig -> Either String LogSink
- setupLogging :: [SinkConfig] -> IO ()
Documentation
data SinkConfig Source #
SinkConfig | |
|
defaultSinkConfig :: SinkConfig Source #
A sink configuration that logs all messages to StdErr
. The used
format is the same as the one used by defaultFormat
.
toLogSink :: SinkConfig -> Either String LogSink Source #
Convert the given sink configuration to a LogSink
. Return Left
if
the format string of the configuration is invalid.
setupLogging :: [SinkConfig] -> IO () Source #
Set up the global LogSink
according to the given sink configurations.