Log::A...og4perl(3pm)
π Log::Any::Adapter::Log4perl π
okay bestie, so you know how Log::Any is like the chill universal remote for logging, and Log::Log4perl is the whole entire entertainment system? yeah. this is the adapter that makes them talk to each other. no cap. it's the aux cord of Perl logging. π
manual page: Log::Any::Adapter::Log4perl(3pm)
β¨ VERSION β¨
this is version 0.09 β she's little, she's iconic, she does exactly what she says on the tin. π
π¦ SYNOPSIS π¦
use Log::Log4perl;
Log::Log4perl::init('/etc/log4perl.conf');
Log::Any::Adapter->set('Log::Log4perl');
that's it. that's the whole vibe. π«Ά
πΈ DESCRIPTION πΈ
so here's the tea: this Log::Any adapter uses Log::Log4perl to actually do the logging. you gotta initialize log4perl before calling set β like, set up the whole configuration first, then plug the adapter in, okay? order matters, bestie.
and the plot twist? there are no parameters. none. zero. zilch. she just works. π
π₯ LOG LEVEL TRANSLATION π₯
the level names don't match up between the two, so here's the translation dictionary. learn it, live it, love it:
notice -> info
warning -> warn
critical -> fatal
alert -> fatal
emergency -> fatal
so basically critical, alert, and emergency all walk into the fatal party together. group chat energy. π
π METHODS π
π§ structured
this adapter supports structured logging, which was introduced in Log-Any v1.700. so if your Log::Any is old enough to remember dial-up, this feature isn't there. upgrade her. β
π SEE ALSO π
Log::AnyLog::Any::AdapterLog::Log4perl
the holy trinity. go read them. iykyk. π
π SUPPORT π
π Bugs / Feature Requests
found a bug? got a feature request that's living rent free in your head? please report it through the issue tracker at <https://github.com/preaction/Log-Any-Adapter-Log4perl/issues>.
and bestie, you will be notified automatically of any progress on your issue. no refreshing the page 400 times. she keeps you posted. π
π Source Code
this is open source software, periodt. the code repository is right there for public review and contribution under the terms of the license:
<https://github.com/preaction/Log-Any-Adapter-Log4perl>
and if you wanna clone it, say less:
git clone https://github.com/preaction/Log-Any-Adapter-Log4perl.git
π AUTHORS π
the founding mothers and fathers of this whole operation:
- Jonathan Swartz <swartz@pobox.com>
- David Golden <dagolden@cpan.org>
- Doug Bell <preaction@cpan.org>
π«Ά CONTRIBUTORS π«Ά
the besties who showed up and helped:
- Doug Bell <doug@preaction.me>
- Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2018 by Jonathan Swartz.
this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
so like, yes you can share her, yes you can remix her, just keep the same terms as Perl 5. respect the license, bestie. π
okay that's the whole page!! written up for perl v5.36.0, dated 2022-11-19, and logged with love by your favorite adapter. mwah. πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: liblog-any-adapter-log4perl-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: liblog-any-adapter-log4perl-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: liblog-any-adapter-log4perl-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liblog-any-adapter-log4perl-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liblog-any-adapter-log4perl-perl 0.09-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms