On Fri, 2003-10-10 at 10:03, Henrik Vendelbo wrote: > How do you configure log directory. I would prefer setting it independent of > the file name. > Can I define it in log4j.properties, or by modifying properties runtime ? > > I currently use absolute paths just with forward / under NT, but apparently > it isnt working.
Hi Henrik, We have this line at the top of our log4j.properties file: webappRoot=/var/tomcat4/webapps/ then in our appender config: log4j.appender.taipanAppender.file=${webappRoot}Taipan/logs/taipan-log4j.log This allows a little more flexibility in defining a base directory etc. For windows, you will probably need something like: webappRoot=c:\\toolkit\\tomcat4.0\\webapps\\ Mainly because of \ need to be escaped. Hope this helps you. regards, Paul Smith --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]