logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yugen <yu...@alum.mit.edu>
Subject How to add new priority levels?
Date Mon, 21 Jan 2002 21:13:19 GMT
I'd like to trace my execution flow by logging the entry 
and exit points in certain methods.

I considered creating ENTRY and EXIT priority levels (which 
would probably be between DEBUG and INFO), but I noticed 
this in the "short manual":

"Categories may be assigned priorities. The set of possible 
priorities, that is DEBUG, INFO, WARN, ERROR and FATAL are 
defined in the org.apache.log4j.Priority class. Although we 
do not encourage you from doing so, you may define your own 
priorities by sub-classing the Priority class. A perhaps 
better approach is will be explained later on."

I read through the whole doc, but as far as I could tell, I 
didn't see any mention of the better approach.  What is the 
recommended way to add priority levels?

To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

View raw message