NAME

Log::Any::Adapter::Duperr - Cunning adapter for logging to a duplicate of STDERR

SYNOPSIS

use Log::Any::Adapter ('Duperr');

# or

use Log::Any::Adapter;
...
Log::Any::Adapter->set('Duperr');
 
# with minimum level 'warn'
 
use Log::Any::Adapter ('Duperr', log_level => 'warn' );

# and later

open(STDERR, ">/dev/null");

DESCRIPTION

Adapter Duperr are intended to log messages into duplicate of standard descriptor STDERR.

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 - Stderr (save that inside are used descriptor duplicate)

SEE ALSO

Log::Any, Log::Any::Adapter, Log::Any::For::Std

AUTHORS

  • Mikhail Ivanov <m.ivanych@gmail.com>

  • Anastasia Zherebtsova <zherebtsova@gmail.com> - translation of documentation into English

COPYRIGHT AND LICENSE

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.