icepeak-0.7.1.0: A fast JSON document store with push notification support.

Safe HaskellNone
LanguageHaskell2010

Logger

Synopsis

Documentation

type LogQueue = TBQueue LogCommand Source #

data LogLevel Source #

Constructors

LogInfo 
LogError 
Instances
Eq LogLevel Source # 
Instance details

Defined in Logger

Ord LogLevel Source # 
Instance details

Defined in Logger

Read LogLevel Source # 
Instance details

Defined in Logger

Show LogLevel Source # 
Instance details

Defined in Logger

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.