Log::A...og4perl(3pm)

πŸ“¦
version 0.09 Β· 2 versions
  • 0.09 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.09 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::Any
  • Log::Any::Adapter
  • Log::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>

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