Author image Mikhail Ivanov
and 4 contributors

NAME

Log::Any::Adapter::Dupout - Cunning adapter for logging to a duplicate of STDOUT

SYNOPSIS

    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");

DESCRIPTION

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)

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.