File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Variable log4j file name?" Watch "Variable log4j file name?" New topic
Author

Variable log4j file name?

Mark Dougherty
Greenhorn

Joined: Jul 08, 2005
Posts: 1
We have a 3rd party client-side app using log4j. We have access to the log4j.properties (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.

Thanks
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Variable log4j file name?