Log::Dispatch::Pipe - Object for logging to pipe output
use Log::Dispatch; my $log = Log::Dispatch->new( outputs => [ [ 'Pipe', min_level => 'info', output_to => 'cronolog path/to/%Y-%m-%d/something.log', binmode => ':utf8', ] ], );
This module provides a simple object for logging to pipe under the Log::Dispatch::* system.
The constructor takes the following parameters in addition to the standard parameters documented in Log::Dispatch::Output:
A process to be created via pipe, like "cronolog path/to/file.log".
A layer name to be passed to binmode, like ":utf8". Default is none.
If set to 1, a file handle is created to make sure it can be created at initialization. Default is 0.
1
0
Log::Dispatch
Copyright (C) yowcow.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
yowcow <yowcow@cpan.org>
To install Log::Dispatch::Pipe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Dispatch::Pipe
CPAN shell
perl -MCPAN -e shell install Log::Dispatch::Pipe
For more information on module installation, please visit the detailed CPAN module installation guide.