Progress::Any::Output::LogAny - Output progress to Log::Any
version 0.03
use Progress::Any::Output; Progress::Any::Output->set_output("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
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2013 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.