Re: Logging in own Classes

2004-01-17 Thread Ralf Bode
Hi Manfred, thanks! i thougth its a bit offtopic. sorry for that... but i read in german-book "Java Framework für Webanwendungen" (haiges et. al) something about logging... there they use servletContext.getRealPath("/WEB-INF/logging.properties"); for there own actionServlet. but getRealPath()

Re: Logging in own Classes

2004-01-17 Thread Manfred Wolff
Ralf. Its a little bit off topic. Log4J offers several possibilities for configuration. The simplest way is just place your file into the $CLASSPATH e.g. WEB-INF/classes. In this case your file MUST named log4j.properties. At the first attach the log4j Framework searches such a file to configu

Logging in own Classes

2004-01-17 Thread Ralf Bode
Hi all, i want to log something in my own classes (MyAction e.g.) but i dont know how can i set Appenders etc. in "normal" applications i can load with: PropertyConfigurator.configure("/WEB-INF/logging.properties"); log4j-settings but in struts (or is it tomcat?) the file will be ignored...