Log::Log4perl::Filter::LevelRange(3pm)

Log::Log4perl::Filter::LevelRange3pm

Filter for a range of log levels

Usage

    log4perl.filter.Match1               = Log::Log4perl::Filter::LevelRange
    log4perl.filter.Match1.LevelMin      = INFO
    log4perl.filter.Match1.LevelMax      = ERROR
    log4perl.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.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0–7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12–13
  10. Arch

License

Copyright 2002-2026 by Mike Schilli <[email protected]> and Kevin Goess <[email protected]>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

From perl-log-log4perl 1.58-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.