Progress::Any::Output::LogAny - Output progress to Log::Any
This document describes version 0.04 of Progress::Any::Output::LogAny (from Perl distribution Progress-Any-Output-LogAny), released on 2014-07-29.
use Progress::Any::Output; Progress::Any::Output->set("LogAny", logger => $log, template => '(%c/%C) %m', );
This output sends progress update to Log::Any. Only progress update() containing message will be logged, unless has_message_only attribute is set to false. Logging is done at loglevel debug, but when update level is set to high, message will be logged at loglevel info. When update level is set to low, message will be logged at loglevel trace.
has_message_only
debug
level
high
info
low
trace
Instantiate. Usually called through Progress::Any::Output->set("LogAny", %args).
Progress::Any::Output->set("LogAny", %args)
Known arguments:
logger => OBJ
Logger object to use. Defaults to Log::Any->get_logger().
Log::Any->get_logger()
template => STR (default: '(%c/%C) %m')
Will be used to do $progress->fill_template(). See Progress::Any for supported template strings.
$progress->fill_template()
has_message_only => BOOL (default: 1)
By default, when set to 1, will cause output to only log progress update()'s which contains message. If set to 0, will log all progress update()'s.
Progress::Any
Log::Any
Please visit the project's homepage at https://metacpan.org/release/Progress-Any-Output-LogAny.
Source repository is at https://github.com/sharyanto/perl-Progress-Any-Output-LogAny.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Progress-Any-Output-LogAny
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2014 by Steven Haryanto.
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 Progress::Any::Output::LogAny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Progress::Any::Output::LogAny
CPAN shell
perl -MCPAN -e shell install Progress::Any::Output::LogAny
For more information on module installation, please visit the detailed CPAN module installation guide.