-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ken,
On 3/20/2009 12:08 PM, Ken Bowen wrote: > But is there any parameter syntax that would allow me to grab the > context name and write one log4j.properties with something like this: > > log4j.appender.myLogFile.File=${catalina.home}/logs/${context-name}-mylog.log > Nothing built-into Tomcat or log4j. Log4j allows for parameterizing its own log files, but you'd have to set the context-name /in the properties file/ in order for log4j to pick it up. My advice: use ant to do string-replacement as the WAR file is built. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAknEAlAACgkQ9CaO5/Lv0PDCdACeLHdUmRq7wMrdph1Xjyhi0giR YkoAn0S344WMud0h6TmlurVt850Jd3yo =wePB -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org