log-warper-1.8.11: Flexible, configurable, monadic and pretty logging

Safe HaskellNone
LanguageHaskell2010

System.Wlog.Severity

Contents

Description

Custom wrapper around hslogger.Priority.

Synopsis

Documentation

data Severity #

Severity is level of log message importance. It uniquely determines which messages to print.

Constructors

Debug

Debug messages

Info

Information

Notice

Important (more than average) information

Warning

General warnings

Error

General errors/severe errors

Instances

Bounded Severity # 
Enum Severity # 
Eq Severity # 
Ord Severity # 
Read Severity # 
Show Severity # 
Generic Severity # 

Associated Types

type Rep Severity :: * -> * #

Methods

from :: Severity -> Rep Severity x #

to :: Rep Severity x -> Severity #

ToJSON Severity # 
FromJSON Severity # 
type Rep Severity # 
type Rep Severity = D1 * (MetaData "Severity" "System.Wlog.Severity" "log-warper-1.8.11-KofjVnNOH8t8fXxEDj5Ujt" False) ((:+:) * ((:+:) * (C1 * (MetaCons "Debug" PrefixI False) (U1 *)) (C1 * (MetaCons "Info" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "Notice" PrefixI False) (U1 *)) ((:+:) * (C1 * (MetaCons "Warning" PrefixI False) (U1 *)) (C1 * (MetaCons "Error" PrefixI False) (U1 *)))))

data LogRecord #

Internal type of log records.

Constructors

LR !Severity !Text 

Severity utilities

severityPlus :: Severity -> Set Severity #

Returns the Set of Severitys of elements greater or equal to the given value.

debugPlus :: Set Severity #

Returns Set of Severitys not less than Debug.

infoPlus :: Set Severity #

Returns Set of Severitys not less than Info.

noticePlus :: Set Severity #

Returns Set of Severitys not less than Notice.

warningPlus :: Set Severity #

Returns Set of Severitys not less than Warning.

errorPlus :: Set Severity #

Returns Set of Severitys not less than Error.

excludeError :: Set Severity -> Set Severity #

Excludes Error from the Set of Severitys.