Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
Filter
s are used to perform arbitrary filtering of LogRecord
s.
Sink
s and Handler
s can optionally use Filter
to filter LogRecord
s
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 LogRecord
s.
Instances
Eq Filter Source # | |
Read Filter Source # | |
Show Filter Source # | |
IsString Filter Source # | |
Defined in Logging.Filter fromString :: String -> Filter # | |
Filterable Filter Source # | |
HasType Filterer SomeHandler Source # | |
Defined in Logging.Class.Handler typed :: Lens SomeHandler SomeHandler Filterer Filterer # getTyped :: SomeHandler -> Filterer # setTyped :: Filterer -> SomeHandler -> SomeHandler # |