Log::StringFormatter - string formatter for logs
use Log::StringFormatter; use Scalar::Util qw/dualvar/; stringf('foo') -> 'foo' stringf('%s bar','foo') -> 'foo bar' stringf([qw/foo bar/]) -> ['foo','bar'] stringf('uri %s',URI->new("http://example.com/")) -> 'uri http://example.com/' my $dualvar = dualvar 10, "Hello"; stringf('%s , %d', $dualvar, $dualvar) -> 'Hello , 10'
Log::StringFormatter provides a string formatter function that suitable for log messages. Log::StringFormatter's formatter also can serialize non-scalar variables.
format and serialize given values
Log::Minimal, String::Flogger
Copyright (C) Masahiro Nagano.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Masahiro Nagano <kazeburo@gmail.com>
To install Log::StringFormatter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::StringFormatter
CPAN shell
perl -MCPAN -e shell install Log::StringFormatter
For more information on module installation, please visit the detailed CPAN module installation guide.