RE: Trying to put logs under ${CATALINA_HOME}/logs/

2003-08-14 Thread Andy McBride
Hi, Specifying ${catalina.base} or ${catalina.home} should work if you started tomcat using bin\startup.bat file as this script converts the environment variable CATALINA_HOME into a -D system property on the java command line. Log4J tries to resolve properties surrounded by ${ and } by

RE: Log based on object and not the class

2003-12-11 Thread Andy McBride
I use something like this: public class Parent { protected Logger log = Logger.getLogger(getClass()); public void myMethod() { log.debug(logging message); } } public class Child1 extends Parent { public void execute1() { myMethod(); } } public class Child2 extends