log4hs-0.9.0.0: A python logging style log library

Safe HaskellNone
LanguageHaskell2010

Logging.Filter

Synopsis

Documentation

data Filter Source #

Filters are used to perform arbitrary filtering of LogRecords.

Sinks and Handlers can optionally use Filter to filter LogRecords as desired. It allows events which are below a certain point in the sink hierarchy. For example, a Filter initialized with A.B will allow events logged by loggers A.B, A.B.C, A.B.C.D, A.B.D etc. but not A.BB, B.A.B etc.

If initialized with the empty string, all events are passed.

If initialized with a predicate function, the Logger will be considered as the Filter's name, the function will be used to filter LogRecords.

Constructors

Filter Logger (Maybe (LogRecord -> Bool)) 
Instances
Eq Filter Source #

If two Filters have same Logger (name), they are equal.

Instance details

Defined in Logging.Filter

Methods

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

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

Read Filter Source # 
Instance details

Defined in Logging.Filter

Show Filter Source # 
Instance details

Defined in Logging.Filter

IsString Filter Source # 
Instance details

Defined in Logging.Filter

Methods

fromString :: String -> Filter #

FromJSON Filter Source # 
Instance details

Defined in Logging.Filter

Filterable Filter Source # 
Instance details

Defined in Logging.Filter

HasType Filterer SomeHandler Source # 
Instance details

Defined in Logging.Class.Handler

type Filterer = [Filter] Source #

List of Filter