This isn't necessarily app-server independent, but you can probably can take advantage of variable substitution in the config file. Log4j can substitute system property values into the log4j config file using the Ant-like syntax (${<system properties>}), so if your app server puts deployment-specific information into system variables (Weblogic does), then you can use them.
Is it really necessary to do it in a totally app-server independent manner? It's just a matter of changing the config file. Are you running a heterogenous set of J2EE servers? Ken -----Original Message----- From: Doubleday, Dennis [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 5:09 PM To: 'Log4J Users List' Subject: Making HTML log file available through web app Another question is "How, in an app-server independent way, can I make my web app HTMLLayout log files available through the web app itself? It would seem that I would need to write the log to a file located under the web app docroot, but I don't know how to specify such a location in the log4j.xml file. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]