Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Log::Any::Adapter::Multiplex

Name Log::Any::Adapter::Multiplex
Version 1.710
Located at /usr/share/perl5
File /usr/share/perl5/Log/Any/Adapter/Multiplex.pm
Is Core No
Search CPAN for this module Log::Any::Adapter::Multiplex
Documentation Log::Any::Adapter::Multiplex
Module Details Log::Any::Adapter::Multiplex


NAME

Log::Any::Adapter::Multiplex - Adapter to use allow structured logging across other adapters


VERSION

version 1.710


SYNOPSIS

    Log::Any::Adapter->set(
        'Multiplex',
        adapters => {
            'Stdout' => [],
            'Stderr' => [ log_level => 'warn' ],
            ...
            $adapter => \@adapter_args
        },
    );


DESCRIPTION

This built-in the Log::Any manpage adapter provides a simple means of routing logs to multiple other the Log::Any::Adapter manpages.

Adapters receiving messages from this adapter can behave just like they are the only recipient of the log message. That means they can, for example, use Structured logging in the Log::Any::Adapter::Development manpage (or not).

adapters is a hashref whose keys should be adapters, and whose values are the arguments to pass those adapters on initialization.

Note that this differs from other loggers like the Log::Dispatch manpage, which will only provide its output modules a single string $message, and not the full Log context data in the Log::Any manpage.


SEE ALSO

the Log::Any manpage, the Log::Any::Adapter manpage


AUTHORS


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.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026