| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Logging.Filter
Documentation
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.
Instances
| Eq Filter Source # | |
| Read Filter Source # | |
| Show Filter Source # | |
| IsString Filter Source # | |
Defined in Logging.Filter Methods fromString :: String -> Filter # | |
| FromJSON Filter Source # | |
| Filterable Filter Source # | |
| HasType Filterer SomeHandler Source # | |
Defined in Logging.Class.Handler Methods typed :: Lens SomeHandler SomeHandler Filterer Filterer # getTyped :: SomeHandler -> Filterer # setTyped :: Filterer -> SomeHandler -> SomeHandler # | |