System.Log

hslogger-1.1.5: Versatile logging framework

Portability | portable
Stability | experimental
Maintainer | John Goerzen <jgoerzen@complete.org>
Safe Haskell | Safe-Infered

System.Log

Contents

- Types

Description

Haskell Logging Framework

Written by John Goerzen, jgoerzen@complete.org

This module defines basic types used for logging.

Extensive documentation is available in System.Log.Logger.

Synopsis

- data Priority
  - = DEBUG
  - | INFO
  - | NOTICE
  - | WARNING
  - | ERROR
  - | CRITICAL
  - | ALERT
  - | EMERGENCY
- type LogRecord = (Priority, String)

# Types

data Priority

Priorities are used to define how important a log message is. Users can filter log messages based on priorities.

These have their roots on the traditional syslog system. The standard definitions are given below, but you are free to interpret them however you like. They are listed here in ascending importance order.

Constructors

DEBUG | Debug messages
INFO | Information
NOTICE | Normal runtime conditions
WARNING | General Warnings
ERROR | General Errors
CRITICAL | Severe situations
ALERT | Take immediate action
EMERGENCY | System is unusable

Instances

Eq Priority |
Ord Priority |
Read Priority |
Show Priority |

type LogRecord = (Priority, String)

Internal type of log records