This content has been marked as final.
Show 1 reply
-
1. How to use Commons-logging with JBoss??
shaileshjboss Jul 10, 2005 6:18 PM (in response to shaileshjboss)"ShaileshJboss" wrote:
My application uses commons-logging and works fine with Tomcat. With JBoss 4.0.0 RC2 it does not work. I have made jboss settings as given on wiki page, http://wiki.jboss.org/wiki/Wiki.jsp?page=Logging under heading
"Using your own log4j.xml file - class loader scoping"
This works fine as long as I use log4j's
Logger log = Logger.getLogger(My.class);
With this log file is properly created.
But if I use following commons-logging statement,
Log log = LogFactory.getLog(My.class)
then it does not work. No error is given on jboss console, but also no log file is created.
Any Idea why it does not work? Am I have to do any additional settting to configure jboss for commons-logging??
Please help and Thanks in Advance