[jboss-user] [JBoss Portal] - using commons logging with Log4jService

erezharari do-not-reply at jboss.com
Tue Apr 29 09:51:31 EDT 2008


jboss use log4j throughLog4jService.
how can i use commons logging with the service Log4jService?

i wrote a test with common logging.
configured a logger and an appender in jboss-log4l.xml.
put commons-logging.properties in a jar under server/default/lib with content:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger

then, when i log to the logger i get a message:
log4j:WARN No appenders could be found for logger (erez).

am i missing anything?
is there a known issue of commons logging and jboss?

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

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



More information about the jboss-user mailing list