Package org.apache.axis2.util
Class OnDemandLogger
- java.lang.Object
-
- org.apache.axis2.util.OnDemandLogger
-
public class OnDemandLogger extends Object
The OnDemandLogger will defer the creation of the actual Log object until it is needed. This may be necessary to ensure that the Log implementation is consistent with the Log interface in the current class loader.
-
-
Constructor Summary
Constructors Constructor Description OnDemandLogger(Class c)Create an on-demand logger for the given class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Object arg0)voiddebug(Object arg0, Throwable arg1)voiderror(Object arg0)voiderror(Object arg0, Throwable arg1)voidfatal(Object arg0)voidfatal(Object arg0, Throwable arg1)booleanhasLog()voidinfo(Object arg0)voidinfo(Object arg0, Throwable arg1)booleanisDebugEnabled()booleanisErrorEnabled()booleanisFatalEnabled()booleanisInfoEnabled()booleanisTraceEnabled()booleanisWarnEnabled()voidresetLog()reset the Log object to force a reloadvoidtrace(Object arg0)voidtrace(Object arg0, Throwable arg1)voidwarn(Object arg0)voidwarn(Object arg0, Throwable arg1)
-
-
-
Constructor Detail
-
OnDemandLogger
public OnDemandLogger(Class c)
Create an on-demand logger for the given class.- Parameters:
c-
-
-
Method Detail
-
resetLog
public void resetLog()
reset the Log object to force a reload
-
hasLog
public boolean hasLog()
- Returns:
- true if Log is set
-
debug
public void debug(Object arg0)
-
error
public void error(Object arg0)
-
fatal
public void fatal(Object arg0)
-
info
public void info(Object arg0)
-
isDebugEnabled
public boolean isDebugEnabled()
-
isErrorEnabled
public boolean isErrorEnabled()
-
isFatalEnabled
public boolean isFatalEnabled()
-
isInfoEnabled
public boolean isInfoEnabled()
-
isTraceEnabled
public boolean isTraceEnabled()
-
isWarnEnabled
public boolean isWarnEnabled()
-
trace
public void trace(Object arg0)
-
warn
public void warn(Object arg0)
-
-