I have a question about Log4J Domains, I noticed this is on the planning page for Log4J 1.3.  Will the Log4J Domain allow change to what is currently conceived as a Category?

 

My current issue is that I have a JRun 4 application server, on this server I have multiple web applications with multiple users who, although not intentionally, sometimes have multiple sessions.  I’m trying to make my logging be based off of each person (if it is a web request) and then a sub-category of their session id.  The way I do this is using Filters, MDC to store user identification and session identification and then use a static getLogger(String n) method that will query the MDC for the extra personalized information and append this onto the start of the category.  Once I do this I can use LogFactor5 and simply turn off the noise of everyone else’s logging for their sessions and focus in on the person who reports a problem or that I notice exceptions for and track a clearer picture of the steps taken to create the exception. Especially if I have 100 simultaneous users on one server.

 

So will Log4J Domains help me solve my problem without resorting to calling a static method to acquire the Logger each and every time I wish to log something in a method?

Reply via email to