Package org.alfresco.util
Class LogAdapter
- java.lang.Object
-
- org.alfresco.util.LogAdapter
-
- All Implemented Interfaces:
org.apache.commons.logging.Log
- Direct Known Subclasses:
LogTee
@AlfrescoPublicApi public abstract class LogAdapter extends Object implements org.apache.commons.logging.Log
Utility class to adapt aLogclass.- Since:
- 4.2
- Author:
- Alan Davis
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.logging.Loglog
-
Constructor Summary
Constructors Modifier Constructor Description protectedLogAdapter(org.apache.commons.logging.Log log)Constructor of an optional wrappedLog.
-
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)voidinfo(Object arg0)voidinfo(Object arg0, Throwable arg1)booleanisDebugEnabled()booleanisErrorEnabled()booleanisFatalEnabled()booleanisInfoEnabled()booleanisTraceEnabled()booleanisWarnEnabled()voidtrace(Object arg0)voidtrace(Object arg0, Throwable arg1)voidwarn(Object arg0)voidwarn(Object arg0, Throwable arg1)
-
-
-
Method Detail
-
trace
public void trace(Object arg0)
- Specified by:
tracein interfaceorg.apache.commons.logging.Log
-
trace
public void trace(Object arg0, Throwable arg1)
- Specified by:
tracein interfaceorg.apache.commons.logging.Log
-
debug
public void debug(Object arg0)
- Specified by:
debugin interfaceorg.apache.commons.logging.Log
-
debug
public void debug(Object arg0, Throwable arg1)
- Specified by:
debugin interfaceorg.apache.commons.logging.Log
-
info
public void info(Object arg0)
- Specified by:
infoin interfaceorg.apache.commons.logging.Log
-
info
public void info(Object arg0, Throwable arg1)
- Specified by:
infoin interfaceorg.apache.commons.logging.Log
-
warn
public void warn(Object arg0)
- Specified by:
warnin interfaceorg.apache.commons.logging.Log
-
warn
public void warn(Object arg0, Throwable arg1)
- Specified by:
warnin interfaceorg.apache.commons.logging.Log
-
error
public void error(Object arg0)
- Specified by:
errorin interfaceorg.apache.commons.logging.Log
-
error
public void error(Object arg0, Throwable arg1)
- Specified by:
errorin interfaceorg.apache.commons.logging.Log
-
fatal
public void fatal(Object arg0)
- Specified by:
fatalin interfaceorg.apache.commons.logging.Log
-
fatal
public void fatal(Object arg0, Throwable arg1)
- Specified by:
fatalin interfaceorg.apache.commons.logging.Log
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabledin interfaceorg.apache.commons.logging.Log
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabledin interfaceorg.apache.commons.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabledin interfaceorg.apache.commons.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabledin interfaceorg.apache.commons.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabledin interfaceorg.apache.commons.logging.Log
-
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabledin interfaceorg.apache.commons.logging.Log
-
-