When a layout contains a "%C" and easy_init is executed outside a module
(i.e. in a standalone script), you get the error message "Use of
uninitialized value in sprintf at..."
This occurred both with Perl 5.8.8 on CentOS 5 and ActiveState Perl 5.10
on Windows 2003.
This code will demonstrate the issue:
use Log::Log4perl::Tiny qw(:easy);
Log::Log4perl->easy_init( { file => '>>testlog.log',
level => $DEBUG,
layout => '%d %C %p: %m%n' } );
INFO "A test log message";
Example output (from Linux system mentioned above):
Use of uninitialized value in sprintf at
/usr/lib/perl5/site_perl/5.8.8/Log/Log4perl/Tiny.pm line 171.