Log::Any::Adapter::Dupout - Cunning adapter for logging to a duplicate of STDOUT
use Log::Any::Adapter ('Dupout'); # or use Log::Any::Adapter; ... Log::Any::Adapter->set('Dupout'); # with minimum level 'warn' use Log::Any::Adapter ('Dupout', log_level => 'warn' ); # and later open(STDOUT, ">/dev/null");
Adapter Dupout are intended to log messages into duplicate of standard descriptor STDOUT.
Logging into a duplicate of standard descriptor might be needed in special occasions when you need to redefine or even close standard descriptor but you want to continue displaying messages wherever they are displayed by a standard descriptor. See more Log::Any::Adapter::Dupstd.
These adapters work similarly to ordinary adapters from distributive Log::Any - Stdout (save that inside are used descriptor duplicate)
Log::Any, Log::Any::Adapter, Log::Any::For::Std
Mikhail Ivanov <m.ivanych@gmail.com>
Anastasia Zherebtsova <zherebtsova@gmail.com> - translation of documentation into English
This software is copyright (c) 2015 by Mikhail Ivanov.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Log::Any::Adapter::Dupstd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Any::Adapter::Dupstd
CPAN shell
perl -MCPAN -e shell install Log::Any::Adapter::Dupstd
For more information on module installation, please visit the detailed CPAN module installation guide.