[Opensource] Expresso 5.1 Logging Names

Peter A. Pilgrim peterp at xenonsoft.demon.co.uk
Mon Dec 30 18:50:09 PST 2002


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?

-- 
Peter Pilgrim
ServerSide Java Specialist

My on-line resume and for interview videos about myself, J2EE
Open Source, Struts and Expresso.
    ||
    \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''




More information about the Opensource mailing list