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 Steve Ebersole <st...@austin.rr.com> on 2001/12/26 23:26:22 UTC
freeing up categories/loggers
In parts of our application, we are using log4j Logger objects in a
non-static context. We have a user class, which gets a Logger based upon
the user id this User object represents as well as the HttpSession to which
this user belongs:
Logger logger = Logger.getLogger( "session." + user + "." + session );
However, my understanding is that log4j will keep a reference to this
specific logger in case it can get used again. But, because this logger is
so unique and there is a high probability that a logger with this exact name
will never again be used, is there a way to tell log4j to close this logger?
P.S., what is the process for submitting new classes to the project?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>