Log::ger::Format::Flogger - Use String::Flogger for formatting instead of sprintf
version 0.001
use Log::ger::Format 'Flogger'; use Log::ger;
After that:
log_error 'simple!'; log_warn [ 'slightly %s complex', 'more' ]; log_info [ 'and inline some data: %s', { look => 'data!' } ]; log_debug [ 'and we can defer evaluation of %s if we want', sub { 'stuff' } ]; log_trace sub { 'while avoiding sprintfiness, if needed' };
To install only for current package:
use Log::ger::Format; Log::ger::Format->set_for_current_package('Flogger'); use Log::ger;
Log::ger
String::Flogger
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017 by perlancar@cpan.org.
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 Log::ger::Format::Flogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::ger::Format::Flogger
CPAN shell
perl -MCPAN -e shell install Log::ger::Format::Flogger
For more information on module installation, please visit the detailed CPAN module installation guide.