commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Hohwiller <jo...@j-hohwiller.de>
Subject Re: [logging] Logger.getName
Date Thu, 29 Sep 2005 20:28:25 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jörg Schaible wrote:
> Hi Jörg,
Hi Jörg :)
> 
> Joerg Hohwiller wrote on Wednesday, September 28, 2005 8:36 PM:
> 
> [snip]
> 
> 
>>So the question still is if I should implement getName() or
>>kick it out.
> 
> 
> Well, *my* use case for the getName() was creating a child logger. 
> Originally I had just the idea, that getName() would
> be easier to implement from a portability view.
I am through with my changes without taking care of the caching of the
LogFactory (solution 2).
The only Problem was/is that the AvalonLogger has a constructor that
takes a single org.apache.avalon.framework.logger.Logger as argument.
If that constructor is used, I can not get the name of the Logger back.
Therefore I assume that it is "" and documented that the constructor
should only be used with a root-logger instance.
Additionally I added a constructor with
org.apache.avalon.framework.logger.Logger and String to specify the
name of the initial logger.
When the test issue is clearified, I will provide the full patch.
> 
> - Jörg
dito
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDPE5omPuec2Dcv/8RAhC2AJ9sELbpH87R4KLpiV5GqQ4SkZtuKgCfdaoS
3l5e5+1aB9DemRk95Xcteec=
=c/RX
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message