- data LogMessage = LogMessage {}
- data Logger = Logger {}
- logger :: (Chan (Maybe LogMessage) -> IO ()) -> IO Logger
Documentation
data LogMessage Source
Used by logging implementations only. Contains information about the log message.
This object provides the logging API. Consult the documentation for the logging implementation (or SimpleLogger) about how to acquire a Logger object.
Logger | |
|
logger :: (Chan (Maybe LogMessage) -> IO ()) -> IO LoggerSource
Used by logging implementations only. Provides a Logger object, given a
looping function operating on a LogMessage
channel.