Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Logger
- type LogRecord = Text
- type LogQueue = TBQueue LogCommand
- data LogLevel
- newLogger :: Config -> IO Logger
- postLog :: Logger -> LogLevel -> LogRecord -> IO ()
- postLogBlocking :: Logger -> LogLevel -> LogRecord -> IO ()
- postStop :: Logger -> IO ()
- processLogRecords :: Logger -> IO ()
- loggerSentryService :: Logger -> Maybe SentryService
Documentation
postLog :: Logger -> LogLevel -> LogRecord -> IO () Source #
Post a non-essential log message to the queue. The message is discarded when the queue is full.
postLogBlocking :: Logger -> LogLevel -> LogRecord -> IO () Source #
Post an essential log message to the queue. This function blocks when the queue is full.
processLogRecords :: Logger -> IO () Source #