You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by yugen <yu...@alum.mit.edu> on 2002/01/21 22:13:19 UTC
How to add new priority levels?
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>