NAME

Log::ger::Format::Block - Use formatting using block instead of sprintf-style

VERSION

version 0.001

SYNOPSIS

use Log::ger::Format::Block;
use Log::ger;

Calling use Log::ger::OptAway will affect only the current package. You should do this before use Log::err (which will create and import the logging routines like log_warn et al).

After that, you can use your logging routine a la Log::Contextual:

# the following block won't run if debug is off
log_debug { "the new count in the database is " . $rs->count };

DESCRIPTION

SEE ALSO

Log::ger

Log::Contextual

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

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.