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

Safe HaskellNone
LanguageHaskell2010

System.Wlog.Severity

Contents

Description

Custom wrapper around hslogger.Priority.

Synopsis

Documentation

data Severity Source #

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 Source # 
Enum Severity Source # 
Eq Severity Source # 
Ord Severity Source # 
Read Severity Source # 
Show Severity Source # 
Generic Severity Source # 

Associated Types

type Rep Severity :: * -> * #

Methods

from :: Severity -> Rep Severity x #

to :: Rep Severity x -> Severity #

FromJSON Severity Source # 
ToJSON Severity Source # 
type Rep Severity Source # 
type Rep Severity = D1 (MetaData "Severity" "System.Wlog.Severity" "log-warper-1.7.1-2Xo7UcqB7WK1Yjd4dIDxNU" 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 Source #

Internal type of log records.

Constructors

LR !Severity !Text 

Severity utilities

severityPlus :: Severity -> Set Severity Source #

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

debugPlus :: Set Severity Source #

Returns Set of Severitys not less than Debug.

infoPlus :: Set Severity Source #

Returns Set of Severitys not less than Info.

noticePlus :: Set Severity Source #

Returns Set of Severitys not less than Notice.

warningPlus :: Set Severity Source #

Returns Set of Severitys not less than Warning.

errorPlus :: Set Severity Source #

Returns Set of Severitys not less than Error.