> It seems there is know place in the LoggingEvent to place info like the > user or IP address or anything like that.
I was just about to ask the same thing ;-) What I currently do is to put user and host information into the MDC. If you are using servlets, you can create a javax.servlet.Filter that adds and removes these values. The problem with this approach is that not all my code (EJBs) is accessed only through servlets, so I often end up looking up the user name twice (once in the filter, a second time in the EJB). In fact, for EJBs *every* method has to first look up the user name and add it to the MDC, not very elegant (unless you do aspect-oriented programming...) A possible solution would be to wrap the Logger in a custom Logger that is initialized with a context object, from which the Logger can extract the user name each time a log message is written. This would be transparent, but probably not very efficient (look up user name, put user name in MDC, log, remove user name, repeat). Providing such functionality would make log4j the first and only J2EE Logger :-) -- Eric Jain -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>