MissingH-0.16.0: ContentsIndex
MissingH.Logging.Handler
Portabilityportable
Stabilityprovisional
MaintainerJohn Goerzen <jgoerzen@complete.org>
Contents
Basic Types
Description

Definition of log handler support

For some handlers, check out MissingH.Logging.Handler.Simple and MissingH.Logging.Handler.Syslog.

Please see MissingH.Logging.Logger for extensive documentation on the logging system.

Written by John Goerzen, jgoerzen@complete.org

Synopsis
class LogHandler a where
setLevel :: a -> Priority -> a
getLevel :: a -> Priority
handle :: a -> LogRecord -> String -> IO ()
emit :: a -> LogRecord -> String -> IO ()
close :: a -> IO ()
Basic Types
class LogHandler a where

All log handlers should adhere to this.

This is the base class for the various log handlers. They should all adhere to this class.

Methods
setLevel :: a -> Priority -> a
Sets the log level. handle will drop items beneath this level.
getLevel :: a -> Priority
Gets the current level.
handle :: a -> LogRecord -> String -> IO ()
Logs an event if it meets the requirements given by the most recent call to setLevel.
emit :: a -> LogRecord -> String -> IO ()
Forces an event to be logged regardless of the configured level.
close :: a -> IO ()
Closes the logging system, causing it to close any open files, etc.
show/hide Instances
LogHandler SyslogHandler
LogHandler (GenericHandler a)
Produced by Haddock version 0.8