File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Variable log4j file name? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Variable log4j file name?" Watch "Variable log4j file name?" New topic

Variable log4j file name?

Mark Dougherty

Joined: Jul 08, 2005
Posts: 1
We have a 3rd party client-side app using log4j. We have access to the (in a .jar file) but not the source code.

Users will be logging into a Citrix server, and at best all we can do is have all users append to the same log file. What we'd like is a unique log file name for each user, possible based on the userid. Has anyone solved this in the past? I don't see any way to make the log file name 'variable' since it's essentially wired into the appender configuration. Having a unique version of the .jar file in the users classpath would solve it I believe, but that'd be a last resort situation due to the future vendor upgrades, etc.

I agree. Here's the link:
subject: Variable log4j file name?
jQuery in Action, 3rd edition