log4hs-0.9.0.0: A python logging style log library

Safe HaskellNone
LanguageHaskell2010

Logging.Level

Synopsis

Documentation

newtype Level Source #

Level also known as severity, a higher Level means a bigger Int.

There are 5 common severity levels:

DEBUG
Level 10
INFO
Level 20
WARN
Level 30
ERROR
Level 40
FATAL
Level 50
>>> :set -XOverloadedStrings
>>> "DEBUG" :: Level
DEBUG
>>> "DEBUG" == (Level 10)
True

Constructors

Level Int 
Instances
Enum Level Source # 
Instance details

Defined in Logging.Level

Eq Level Source # 
Instance details

Defined in Logging.Level

Methods

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

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

Ord Level Source # 
Instance details

Defined in Logging.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 #

Read Level Source # 
Instance details

Defined in Logging.Level

Show Level Source # 
Instance details

Defined in Logging.Level

Methods

showsPrec :: Int -> Level -> ShowS #

show :: Level -> String #

showList :: [Level] -> ShowS #

IsString Level Source # 
Instance details

Defined in Logging.Level

Methods

fromString :: String -> Level #

FromJSON Level Source # 
Instance details

Defined in Logging.Level

FormatArg Level Source # 
Instance details

Defined in Logging.Level

HasType Level SomeHandler Source # 
Instance details

Defined in Logging.Class.Handler