[Opensource] Expresso 5.1 Logging Names
Michael Rimov
rimovm at centercomp.com
Tue Jan 7 18:51:23 PST 2003
At 02:50 AM 12/31/2002 +0000, you wrote:
>larry hamel wrote:
>>+1 from me.
>>note that the expressoLogging.xml file will need changing also.
>>larry
>>At 08:45 AM 12/29/2002, you wrote:
>>
>>>Hey All,
>>>
>>>Sometimes things seem like a good idea at the time and don't pan out in
>>>the end... I've been thinking that the current naming convention for the
>>>Expresso log categories falls into this arena. Instead of making log names:
>>>
>>>Logger.getLogger("expresso.core.dbobj.DBObject");
>>>
>>>It would be so much 'nicer' IMO to have it as:
>>>Logger.getLogger(DBObject.class);
>>>
>>>Because Expresso defines a root logger, there won't be any API issues
>>>for folks if they continue to use the 'older' way in their code, it
>>>would just shift the logging configuration file around some.
>>>
>>>Does anybody have any objections to this switch for Expresso 5.1??
>>>
>>>Thanks,
>
> public Logger Logger.getLogger(Class c)
>
>+1 from me as well
>
>This makes the design a little clearer both you should also retain
>
> public Logger Logger.getLogger(String m)
>
>for some situations. Is this the best practice now for logging in Expresso?
>Should I upgrade the eForum stuff to use it now?
Sure. org.apache.log4j.Category has been @deprecated anyway in favor of
org.apache.log4j.Logger. Right now, I'm converting them over whenever I
come across it, but haven't done a wholesale effort yet. Will do that
before 5.1 is released.
-Mike
More information about the Opensource
mailing list