Skip Menu |

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

Report information
The Basics
Id: 37831
Status: resolved
Priority: 0/
Queue: MooseX-Log-Log4perl

People
Owner: Nobody in particular
Requestors: lammel [...] cpan.org
maik [...] mm-double.de
Cc:
AdminCc:

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



Subject: Re: Seltsames Verhalten von MooseX::Log::Log4perl
Date: Mon, 21 Jul 2008 22:15:39 +0200
To: bug-MooseX-Log-Log4perl [...] rt.cpan.org
From: "Roland Lammel" <lammel [...] cpan.org>
2008/7/17 Maik Hentsche <maik@mm-double.de>: Show quoted text
> Hallo Roland, > ich habe gerade MooseX::Log::Log4perl ausprobiert und es verhält sich > nicht so, wie ich es erwarten würde. Mein Beispielcode findet sich > unter: http://nopaste.snit.ch/13601 > In diesem Code verwende ich im Pattern Layout %c.Das sollte nach meinem > Verständnis "child" in der Child-Klasse und "Base" in der > Base-Klasse bringen. Tatsächlich bekomme ich aber folgende Ausgabe: > 2008/07/17 19:35:36 DEBUG Child=HASH(0x86825c0) - child - debug > 2008/07/17 19:35:36 INFO Child=HASH(0x86825c0) - special child info > 2008/07/17 19:35:36 DEBUG Child=HASH(0x86825c0) - base - debug > 2008/07/17 19:35:36 INFO special - special base info > > %c produziert also Child=HASH(0x86825c0) statt den Hash zu > dereferenzieren. Das ist sehr wahrscheinlich ein Fehler. > > so long > Maik >
The wrong usage of the object reference has been resolved for the initialization of the logger attribute. Now ref($self) is used to get the classname correctly. Will be on CPAN as MooseX-Log-Log4perl-0.31 shortly. Show quoted text
> > 2008/07/17 19:35:36 DEBUG Child=HASH(0x86825c0) - child - debug > > 2008/07/17 19:35:36 INFO Child=HASH(0x86825c0) - special child info > > 2008/07/17 19:35:36 DEBUG Child=HASH(0x86825c0) - base - debug > > 2008/07/17 19:35:36 INFO special - special base info > > > > %c produziert also Child=HASH(0x86825c0) statt den Hash zu > > dereferenzieren. Das ist sehr wahrscheinlich ein Fehler.