Filter::MDC(3)
πΈ NAME πΈ
Log::Log4perl::Filter::MDC β a filter to match on values of a MDC key. This is the Filter::MDC(3) page, bestie: user contributed Perl documentation, here to make your logging config make sense. π«Ά
β¨ SYNOPSIS β¨
Okay so here's the setup β keep it exactly like this, no freestyling the spelling:
log4perl.filter.Match1 = Log::Log4perl::Filter::MDC
log4perl.filter.Match1.KeyToMatch = foo
log4perl.filter.Match1.RegexToMatch = bar
π DESCRIPTION π
This Log4perl filter checks if a predefined MDC key, as set in KeyToMatch, of the currently submitted message matches a predefined regex, as set in RegexToMatch.
That's it, that's the whole plot. It's giving "little key-value detective" energy: you tell it which MDC key to look at, you give it a regex, and it does the matching thing. π₯
π SEE ALSO π
Go click around, bestie β these are the neighbors:
Log::Log4perl::FilterLog::Log4perl::Filter::BooleanLog::Log4perl::Filter::LevelMatchLog::Log4perl::Filter::LevelRangeLog::Log4perl::Filter::MDCLog::Log4perl::Filter::StringMatch
π 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. Slay, but legally. π
π AUTHOR π
Please contribute patches to the project on Github:
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.
That's the whole page, bestie. It came from perl v5.42.0, dated 2022-10-22, and it lives under Filter::MDC(3). Go forth and filter cute. π
π¦ 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