Filter::LevelRange(3)
π NAME
ok so Log::Log4perl::Filter::LevelRange β it's a filter for a range of log levels. that's it, that's the vibe π
β¨ SYNOPSIS β¨
log4perl.filter.Match1 = Log::Log4perl::Filter::LevelRange
log4perl.filter.Match1.LevelMin = INFO
log4perl.filter.Match1.LevelMax = ERROR
log4perl.filter.Match1.AcceptOnMatch = true
π¦ DESCRIPTION π¦
bestie listen. this Log4perl custom filter peeks at the current message and goes "hmm, does ur priority fall inside this predefined range?" it's giving bouncer at the club checking if ur on the list π
the LevelMin and LevelMax parameters are literally the two ends of the window β they define the levels that mark the range of allowed message priorities. u pick from these, no substitutions:
DEBUGINFOWARNERRORFATAL
and the defaults? iconic of them:
LevelMindefaults toDEBUGLevelMaxdefaults toFATAL
so like, by default ur letting everything through. generous queen π
then there's the extra parameter AcceptOnMatch β it decides whether the filter is supposed to pass the message or block it. u feed it true or false, simple as that. no cap.
fr fr, remember AcceptOnMatch is about accepting vs blocking on a match β don't skip it and then act surprised π
π SEE ALSO π
Log::Log4perl::FilterLog::Log4perl::Filter::BooleanLog::Log4perl::Filter::LevelMatchLog::Log4perl::Filter::MDCLog::Log4perl::Filter::StringMatch
like, go read the whole filter family, they're all main characters π
π LICENSE π
Copyright 2002-2013 by Mike Schilli <m@perlmeister.com> and Kevin Goess <cpan@goess.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. periodt. π«Ά
π AUTHOR π
please contribute patches to the project on Github, they literally want ur code:
http://github.com/mschilli/log4perl
send bug reports or requests for enhancements to the authors via our
MAILING LIST (questions, bug reports, suggestions/patches): log4perl-devel@lists.sourceforge.net
Authors (please contact them via the list above, not directly): Mike Schilli <m@perlmeister.com>, Kevin Goess <cpan@goess.org>
Contributors (in alphabetical order): Ateeq Altaf, Cory Bennett, Jens Berthold, Jeremy Bopp, Hutton Davidson, Chris R. Donnelly, Matisse Enzer, Hugh Esco, Anthony Foiani, James FitzGibbon, Carl Franks, Dennis Gregorovic, Andy Grundman, Paul Harrington, Alexander Hartmaier David Hull, Robert Jacobson, Jason Kohles, Jeff Macdonald, Markus Peter, Brett Rann, Peter Rabbitson, Erik Selberg, Aaron Straup Cope, Lars Thegler, David Viner, Mac Yang.
ok that's the whole page bestie, go filter some logs π
πΈ cute lil sign-off: this was perl v5.42.0, dated 2022-10-22, and it lives at Filter::LevelRange(3) β slay β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Log-Log4perl 1.57-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms