logsink-0.2.0: A logging framework for Haskell

Safe HaskellNone
LanguageHaskell2010

System.Logging.LogSink.Config

Synopsis

Documentation

data SinkConfig Source #

Constructors

SinkConfig 

Fields

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.