Skip Menu |
 

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

Report information
The Basics
Id: 38759
Status: new
Priority: 0/
Queue: Catalyst-Log-Log4perl

People
Owner: Nobody in particular
Requestors: rod.taylor [...] gmail.com
Cc:
AdminCc:

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



Subject: autoflush immediately
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 668
Download (untitled) / with headers
text/plain 668b
When using the same log file for multiple Log4perl for both Catalyst and non-catalyst modules I want the statements to appear in order. Modify 'autoflush' to invoke immediate flushing of the catalyst logs. Extending Catalyst::Log::Log4perl causes logs to appear from the wrong module as caller() finds the wrong level. I've modified Catalyst::Log::Log4perl directly instead. *** Log4perl.pm.orig Wed Aug 27 14:30:58 2008 --- Log4perl.pm Wed Aug 27 14:32:17 2008 *************** *** 115,120 **** --- 115,121 ---- sub _log { my $self = shift; push @{ $self->{log4perl_stack} }, @_; + $self->_flush() if ($self->{autoflush}); } sub _dump {


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.