Log::An...ltiplex(3)
π NAME π
Log::Any::Adapter::Multiplex β bestie, this is the adapter that lets you do structured logging across, like, all your other adapters at once. No cap. π
β¨ VERSION β¨
version 1.718 π
π¦ SYNOPSIS π¦
okay so here's the whole vibe:
Log::Any::Adapter->set(
'Multiplex',
adapters => {
'Stdout' => [],
'Stderr' => [ log_level => 'warn' ],
...
$adapter => \@adapter_args
},
);
like. that's it. that's the move. π
πΈ DESCRIPTION πΈ
so this built-in Log::Any adapter is literally just a little router, and its whole job is routing your logs to multiple other Log::Any::Adapters at the same time. one log in, many logs out. it's giving group chat energy fr fr. π²
and here's the part that's lowkey iconic: every adapter receiving messages from this one gets to behave like it's the only recipient of that log message. nobody has to share. so they can, for example, use "Structured logging" in Log::Any::Adapter::Development β or not, honestly, their choice, we don't gatekeep. π«Ά
"adapters" is a hashref. the keys should be adapters, and the values are the arguments you pass those adapters on initialization. easy.
β οΈ note that this differs from other loggers like Log::Dispatch, which will only provide its output modules a single string$message, and not the full"Log context data"inLog::Any. so yeah, we're built different. π
π₯ SEE ALSO π₯
Log::AnyLog::Any::Adapter
go read those too, i'm not explaining everything bestie π
π AUTHORS π
the literal icons who made this happen:
- Jonathan Swartz
<swartz@pobox.com> - David Golden
<dagolden@cpan.org> - Doug Bell
<preaction@cpan.org> - Daniel Pittman
<daniel@rimspace.net> - Stephen Thirlwall
<sdt@cpan.org>
absolute legends, every single one π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2017 by Jonathan Swartz, David Golden, and Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie!! this came out of the perl manual set β perl v5.42.0, dated 2025-07-28 β under the title Log::An...ltiplex(3) as a User Contributed Perl Documentation entry. mwah π slay, go log responsibly π§ββοΈπ
π¦ where this page comes from
- fedora 43: perl-Log-Any 1.718-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms