GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Log::Any::Adapter::Multiplex(3) User Contributed Perl Documentation Log::Any::Adapter::Multiplex(3)

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

version 1.710

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

This built-in Log::Any adapter provides a simple means of routing logs to multiple other Log::Any::Adapters.

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 Log::Any::Adapter::Development (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 Log::Dispatch, which will only provide its output modules a single string $message, and not the full "Log context data" in Log::Any.

Log::Any, Log::Any::Adapter

  • 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>

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.

2021-08-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.