hlogger-0.0.2.0: Simple, concurrent, extendable and easy-to-use logging library

System.Log.SimpleHLogger

Description

 

Synopsis

Documentation

data Logger Source

This object provides the logging API. Consult the documentation for the logging implementation (or SimpleLogger) about how to acquire a Logger object.

Constructors

Logger 

Fields

logDebug :: String -> IO ()

Logs a debug message. Debug messages are the least significant messages.

logInfo :: String -> IO ()

Logs a purely informational message. Use logNotice instead of the information message is significant.

logNotice :: String -> IO ()

Logs a significant purely informational message. Use logNotice instead of the information message is significant.

logWarning :: String -> IO ()

Logs a message signaling a warning condition.

logError :: String -> IO ()

Logs a message signaling that a non-critical error has occurred.

logCritical :: String -> IO ()

Logs a message signaling that a critical error has occurred.

logAlert :: String -> IO ()

Logs a message signaling that an action must be taken.

logEmergency :: String -> IO ()

Logs a message signaling that the system is unusable.

stopLogger :: IO ()

Stops the logger. This action is asynchronous.

simpleLogger :: String -> IO LoggerSource

Acquires a SimpleLogger Logger object. It takes a String, prefix, and creates a file prefix-YYYYMMDDHHMMSS.log in the current directory. It will use UTC time on system that supports it, and local time otherwise.