commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Hohwiller <jo...@j-hohwiller.de>
Subject [logging] Logger.getName
Date Tue, 27 Sep 2005 22:39:59 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everybody,

since nothing happened after I opened bugzilla issue 15939 and called
for discussion, I simply started changing all implementations of Log
so they implement Logger instead (all locally). I will supply the patch,
when I am done.

Now what I found out when worked on LogKitLogger, is that they
deperected the "getCategory()" method which is the analogy of the
invented "getName()" method. Their deprecation is:
<quote>
Deprecated. This method violates Inversion of Control principle. If you
are relying on its presence then there may be something wrong with the
design of your system
</quote>
http://www.keelframework.org/release/2.1-dev/javadoc/org/apache/log/Logger.html#getCategory()

Actually it seems they have now even completely removed the method:
https://svn.apache.org/repos/asf/excalibur/trunk/containerkit/logkit/src/java/org/apache/log/Logger.java

I can not see the point (esp. when there are methods as
"public synchronized Logger[] getChildren()")?

Can someone give me a hint?

I do not really need the "getName()" method and could also leave it out
of Logger. But for me it would still make sense to have the method
and it would be possible to implement it.

Regards
  Jörg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDOco/mPuec2Dcv/8RAhi4AJ43ik8ALxtfMNSxW2j+9cn0Y80qhQCfX9AR
M/XUfGPpOR5+eSqYmMgulos=
=USrp
-----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