logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Trace and Debug level usage
Date Wed, 22 Nov 2006 16:00:13 GMT
On Nov 22, 2006, at 3:24 AM, Stefano Nichele wrote:

> Hi All,
> I don't know if this is the right list, maybe not and I apologize  
> if this is not the right one. BTW, I would like to know how DEBUG  
> and TRACE level are usually handled.
> I mean, when a log record should be DEBUG and when that should be  
> I'm working on a web application and the idea could be: all records  
> useful for an administrator should be DEBUG and not TRACE. At TRACE  
> level just the information useful to the developers could be  
> logged. So, for instance, a value of an "internal" variable should  
> be logged as TRACE. I know this is not easily distinguishable and  
> so I'm wondering how these level are handled from other users.
> Thanks
> Ste

I suggest using logger names to distinguish messages targeted to  
different audiences.  For example, use logger names based on class  
names for diagnostic messages targeted for developers and some other  
naming system for messages targeted to administrators.  Search the  
archives for "audience" or "audit" and you can find previous  
discussions on this topic.

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message