heavy-logger-0.3.2.1: Full-weight logging based on fast-logger

Safe HaskellNone
LanguageHaskell2010

System.Log.Heavy.Level

Contents

Description

This module contains types and functions for log message severities.

Synopsis

Data types

data Level Source #

Logging message severity level data type

Constructors

Level 

Fields

Instances
Eq Level Source # 
Instance details

Defined in System.Log.Heavy.Level

Methods

(==) :: Level -> Level -> Bool #

(/=) :: Level -> Level -> Bool #

Ord Level Source # 
Instance details

Defined in System.Log.Heavy.Level

Methods

compare :: Level -> Level -> Ordering #

(<) :: Level -> Level -> Bool #

(<=) :: Level -> Level -> Bool #

(>) :: Level -> Level -> Bool #

(>=) :: Level -> Level -> Bool #

max :: Level -> Level -> Level #

min :: Level -> Level -> Level #

Show Level Source # 
Instance details

Defined in System.Log.Heavy.Level

Methods

showsPrec :: Int -> Level -> ShowS #

show :: Level -> String #

showList :: [Level] -> ShowS #

Lift Level Source # 
Instance details

Defined in System.Log.Heavy.TH

Methods

lift :: Level -> Q Exp #

Formatable Level Source # 
Instance details

Defined in System.Log.Heavy.Format

Utility functions

levelToLogLevel :: Level -> LogLevel Source #

Conversion function

logLevelToLevel :: LogLevel -> Level Source #

Convertion function. Note that LevelOther is translated to integer level 210 and Syslog's Alert priority, since in monad-logger semantics any LevelOther is more severe than LevelError.

parseLevel Source #

Arguments

:: [Level]

List of recognized levels

-> Text

Level name to find

-> Maybe Level

Nothing if no match found

Detect Level from it's name. This function is not case-sensitive.

Standard severity levels

trace_level :: Level Source #

TRACE level is supposed to be used for development-stage debugging. Has integer value of 600.

debug_level :: Level Source #

DEBUG level is supposed to be used for debug logging that can be enabled on production. Has integer value of 500.

info_level :: Level Source #

INFO level: some event occured. Has integer value of 400.

warn_level :: Level Source #

WARN level: something went wrong, but for now it will not affect system's stability. Has integer value of 300.

error_level :: Level Source #

ERROR level: something went wrong. Has integer value of 200.

fatal_level :: Level Source #

FATAL level: something went terribly wrong, application is to be stopped. Has integer value of 100.

disable_logging :: Level Source #

DISABLED level. This has integer identifier of 0, which is supposed to be less than any other level. This value can be used to disable logging at all.