[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Log4j in JBoss WEB server

chemaaa do-not-reply at jboss.com
Tue Nov 18 06:49:04 EST 2008


I am trying to configure JBoss WEB server 2.1.1 GA to use log4j as the logging framework. What I want is to use log4j to write the internal messages generated by the server to a file and use a log4j.properties file to configure these.

In the JBoss Web server documentation it does mention that it is possible to use log4j (http://www.jboss.org/file-access/default/members/jbossweb/freezone/docs/2.1.1/logging.html), but it doesn't say how to do it (it only mentions the java.util.logging configuration).

To get around this, I have applied the instructions that are given for Apache Tomcat 6.0 at http://tomcat.apache.org/tomcat-6.0-doc/logging.html to the JBoss Web Server source, but it still does not work.

Has anyone managed to get this to work? 
Is this a limitation of JBoss Web Server compared to Apache Tomcat?

Thanks!


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4190070#4190070

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4190070



More information about the jboss-user mailing list