[jboss-user] [Beginner's Corner] - Re: Logging in JBoss

PeterJ do-not-reply at jboss.com
Thu Oct 22 11:46:54 EDT 2009


Use commons logging http://commons.apache.org/logging/

Your logger would then be declared as:

private static final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(ErrorBase.class);

Commons logging will use Log4J is the JAR file is present, and java.util is not.

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

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



More information about the jboss-user mailing list