org.codehaus.wadi.jboss4
Class JBossLog

java.lang.Object
  extended byorg.codehaus.wadi.jboss4.JBossLog
All Implemented Interfaces:
Log

public class JBossLog
extends Object
implements Log

Commons Logging -> JBoss Logging bridge. I wrote it to ensure that commons-logging:trace went to jboss-logging:trace. It took ages to figure out : In your $JBOSS_HOME/server//conf/log4j.xml: 1) remove the "Threshold" param to your target Appender 2) try e.g. and you should see lots of TRACE statements when WADI runs (slowly)

Author:
jules

Field Summary
protected  org.jboss.logging.Logger _log
           
 
Constructor Summary
JBossLog(String name)
           
 
Method Summary
 void debug(Object arg0)
           
 void debug(Object arg0, Throwable arg1)
           
 void error(Object arg0)
           
 void error(Object arg0, Throwable arg1)
           
 void fatal(Object arg0)
           
 void fatal(Object arg0, Throwable arg1)
           
 void info(Object arg0)
           
 void info(Object arg0, Throwable arg1)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void trace(Object arg0)
           
 void trace(Object arg0, Throwable arg1)
           
 void warn(Object arg0)
           
 void warn(Object arg0, Throwable arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected final org.jboss.logging.Logger _log
Constructor Detail

JBossLog

public JBossLog(String name)
Method Detail

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Log

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface Log

isFatalEnabled

public boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface Log

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface Log

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface Log

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface Log

trace

public void trace(Object arg0)
Specified by:
trace in interface Log

trace

public void trace(Object arg0,
                  Throwable arg1)
Specified by:
trace in interface Log

debug

public void debug(Object arg0)
Specified by:
debug in interface Log

debug

public void debug(Object arg0,
                  Throwable arg1)
Specified by:
debug in interface Log

info

public void info(Object arg0)
Specified by:
info in interface Log

info

public void info(Object arg0,
                 Throwable arg1)
Specified by:
info in interface Log

warn

public void warn(Object arg0)
Specified by:
warn in interface Log

warn

public void warn(Object arg0,
                 Throwable arg1)
Specified by:
warn in interface Log

error

public void error(Object arg0)
Specified by:
error in interface Log

error

public void error(Object arg0,
                  Throwable arg1)
Specified by:
error in interface Log

fatal

public void fatal(Object arg0)
Specified by:
fatal in interface Log

fatal

public void fatal(Object arg0,
                  Throwable arg1)
Specified by:
fatal in interface Log


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.