Log::Log4perl::Filter::LevelRange3pm
Filter for a range of log levels
Usage
log4perl.filter.Match1 = Log::Log4perl::Filter::LevelRangelog4perl.filter.Match1.LevelMin = INFOlog4perl.filter.Match1.LevelMax = ERRORlog4perl.filter.Match1.AcceptOnMatch = true
Overview
This Log4perl custom filter checks if the current message has a priority matching a predefined range. The "LevelMin" and "LevelMax" parameters define the levels (choose from "DEBUG", "INFO", "WARN", "ERROR", "FATAL") marking the window of allowed messages priorities.
"LevelMin" defaults to "DEBUG", and "LevelMax" to "FATAL".
The additional parameter "AcceptOnMatch" defines if the filter is supposed to pass or block the message ("true" or "false").
Releases
12 releases since Debian 3.1 (Sarge); the text changed 9 times.