Re: Location of log files with Tomcat

2003-08-25 Thread Louise Pryor
On Monday, August 25, 2003 at 2:50:25 PM, Shapira, Yoav wrote: >>initialization servlet that goes through the log4j.properties file >>making all the file locations be relative to my web app directory. The >>code is listed below. SY> Consider putting this code in a ServletContextListener's SY> c

Re: Location of log files with Tomcat

2003-08-25 Thread Ceki Gülcü
I think there is an easier way. You can use log4j's variable substitution mechanism: All option values admit variable substitution. The syntax of variable substitution is similar to that of Unix shells. The string between an opening "${" and closing "}" is interpreted as a key. The value of the sub

RE: Location of log files with Tomcat

2003-08-25 Thread Shapira, Yoav
Howdy, >initialization servlet that goes through the log4j.properties file >making all the file locations be relative to my web app directory. The >code is listed below. Consider putting this code in a ServletContextListener's contextInitialized() method, instead of a servlet's init() method, a