Log::ger::Format::Hashref - Format arguments as hashref
version 0.003
use Log::ger::Format 'Hashref'; use Log::ger; # single argument, not hashref log_debug "arg"; # becomes : {message=>"arg"} # single argument, hashref log_debug {msg=>"arg"}; # unchanged: {msg=>"arg"} # multiple arguments, odd numbered log_debug "arg1", "arg2", "arg3"; # dies! # multiple arguments, even numbered log_debug "arg1", "arg2", "arg3", "arg4"; # becomes : {arg1=>"arg2", arg3=>"arg4"} log_debug "Data for %s is %s", "budi", {foo=>'blah', bar=>undef};
EXPERIMENTAL.
This formatter tries to produce a single hashref from the arguments.
Other Log::ger::Format::* plugins.
Log::ger::Format::*
Log::ger
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020 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::Hashref, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::ger::Format::Hashref
CPAN shell
perl -MCPAN -e shell install Log::ger::Format::Hashref
For more information on module installation, please visit the detailed CPAN module installation guide.