Hi, - create a servlet with an init method, which configures your log4j properties. - WEB-INF/webx.ml create an entry to init the servlet while server start. One property of this entry is the path to your log4j config-file (if your file is in /classes you can use reflection CLASSNAME.class.getRessource("/configfile.lcf")
juraj -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. Dezember 2002 11:55 An: log4j-user Betreff: Log4j Configuration with Servlet Hi all, Does anybody know if there is any particular care to let Log4j log inside a servlet? By now, I've just added the log4j.properties file in WEB-INF/classes (under Tomcat) of my application, as suggested in the short-manual (http://jakarta.apache.org/log4j/docs/manual.html). Am I forgetting something? Regards, Alessio -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>