Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Log-Log4perl-Tiny CPAN distribution.

Report information
The Basics
Id: 72476
Status: resolved
Priority: 0/
Queue: Log-Log4perl-Tiny

People
Owner: polettix [...] cpan.org
Requestors: jonathan.wilson [...] vanderbilt.edu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.1.0
Fixed in: (no value)



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.
Subject: %C format specifier not working
Thank you for pointing out, it was actually a more general bug with %C. I solved it and released developer release 1.1.0_01 to CPAN (should percolate to the whole CPAN up in a few hours) just to see whether the cpantesters are happy with the patch. You can install it as soon as it shows up if you're in hurry. If you're *really* in a hurry you can already find the patched version on github (https://github.com/polettix/Log-Log4perl-Tiny/) Anyway, after the first few reports from cpantesters are OK I'm planning to upload the definitive release 1.1.1, at which point I'm going to close this ticket. Thanks again, Flavio.
Il Mer 16 Nov 2011 20:37:55, POLETTIX ha scritto: Show quoted text
>If you're *really* in a hurry you can > already find the patched version on github > (https://github.com/polettix/Log-Log4perl-Tiny/)
... and of course the right link to follow on github is https://github.com/polettix/Log-Log4perl- Tiny/
Il Mer 16 Nov 2011 20:39:25, POLETTIX ha scritto: Show quoted text
> Il Mer 16 Nov 2011 20:37:55, POLETTIX ha scritto:
> >If you're *really* in a hurry you can > > already find the patched version on github > > (https://github.com/polettix/Log-Log4perl-Tiny/)
> > ... and of course the right link to follow on github is > https://github.com/polettix/Log-Log4perl- > Tiny/
This is becoming embarassing: https://github.com/polettix/Log-Log4perl-Tiny/
Subject: RE: [rt.cpan.org #72476]
Date: Thu, 17 Nov 2011 07:13:24 -0600
To: "bug-Log-Log4perl-Tiny [...] rt.cpan.org" <bug-Log-Log4perl-Tiny [...] rt.cpan.org>
From: "Wilson, Jonathan" <jonathan.wilson [...] Vanderbilt.Edu>
Thank you - greatly appreciated! Jonathan Show quoted text
-----Original Message----- From: Flavio Poletti via RT [mailto:bug-Log-Log4perl-Tiny@rt.cpan.org] Sent: Wednesday, November 16, 2011 7:40 PM To: Wilson, Jonathan Subject: [rt.cpan.org #72476] <URL: https://rt.cpan.org/Ticket/Display.html?id=72476 > Il Mer 16 Nov 2011 20:39:25, POLETTIX ha scritto:
> Il Mer 16 Nov 2011 20:37:55, POLETTIX ha scritto:
> >If you're *really* in a hurry you can > > already find the patched version on github > > (https://github.com/polettix/Log-Log4perl-Tiny/)
> > ... and of course the right link to follow on github is > https://github.com/polettix/Log-Log4perl- > Tiny/
This is becoming embarassing: https://github.com/polettix/Log-Log4perl-Tiny/
Just released v1.1.1 on CPAN, should pop up in a few hours. Thanks for using it and reporting the bug! Flavio.