HLogger-0.0.0.1: Simple, concurrent and easy-to-use logging libraryContentsIndex
HLogger
Description

This is a work in progress for a logging framework that aims to be simple, concurrent and easy-to-use.

Use startLogger to acquire a HLoggerState, and then use the HLoggerState in subsequent logging calls. Use the log functions to log, and don't forget to call stopLogger when you're finished. See the log functions for information about what the different log levels mean.

Synopsis
startLogger :: String -> IO HLoggerState
stopLogger :: HLoggerState -> IO ()
logDebug :: HLoggerState -> String -> IO ()
logInfo :: HLoggerState -> String -> IO ()
logNotice :: HLoggerState -> String -> IO ()
logWarning :: HLoggerState -> String -> IO ()
logError :: HLoggerState -> String -> IO ()
logCritical :: HLoggerState -> String -> IO ()
logAlert :: HLoggerState -> String -> IO ()
logEmergency :: HLoggerState -> String -> IO ()
Documentation
startLogger :: String -> IO HLoggerState
Call start to get the initial logging state. It takes a String, prefix, as its configuration input and creates a file prefix-YYYYMMDDHHMM.log in the current directory. It will use UTC time on system that supports it, and local time otherwise.
stopLogger :: HLoggerState -> IO ()
Stops the logger by closing the log file and exiting the logging thread.
logDebug :: HLoggerState -> String -> IO ()
Logs a debug message. Debug messages are the least significant messages.
logInfo :: HLoggerState -> String -> IO ()
Logs a purely informational message. Use logNotice instead of the information message is significant.
logNotice :: HLoggerState -> String -> IO ()
Logs a significant purely informational message.
logWarning :: HLoggerState -> String -> IO ()
Logs a message signaling a warning condition.
logError :: HLoggerState -> String -> IO ()
Logs a message signaling that a non-critical error has occurred.
logCritical :: HLoggerState -> String -> IO ()
Logs a message signaling that a critical error has occurred.
logAlert :: HLoggerState -> String -> IO ()
Logs a message signaling that an action must be taken.
logEmergency :: HLoggerState -> String -> IO ()
Logs a message signaling that the system is unusable.
Produced by Haddock version 2.6.1