com.extrememessaging.ResponseMaster.monitor
Class ApacheCommonLoggingLogBridge
java.lang.Object
com.extrememessaging.ResponseMaster.monitor.ApacheCommonLoggingLogBridge
- All Implemented Interfaces:
- org.apache.commons.logging.Log
public class ApacheCommonLoggingLogBridge
- extends java.lang.Object
- implements org.apache.commons.logging.Log
This class is a simple bridge between the apache.common.logging logging system
and the Monitor system of ResponseMaster. It was created so that
logging events created by libraries (HttpClient) that we use can be logged in the
same way that our own events are logged.
You shouldn't need it for anything.
If you want to disable this bridging functionality because you are hosting ResponseMaster
inside another application that uses the Apache logger, set the system property:
"com.extrememessaging.ResponseMaster.ApacheCommonLoggingLogBridge.installBridge" to "0"
Method Summary |
void |
debug(java.lang.Object arg0)
|
void |
debug(java.lang.Object arg0,
java.lang.Throwable arg1)
|
void |
error(java.lang.Object arg0)
|
void |
error(java.lang.Object arg0,
java.lang.Throwable arg1)
|
void |
fatal(java.lang.Object arg0)
|
void |
fatal(java.lang.Object arg0,
java.lang.Throwable arg1)
|
void |
info(java.lang.Object arg0)
|
void |
info(java.lang.Object arg0,
java.lang.Throwable arg1)
|
static void |
Initialize()
|
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isFatalEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isTraceEnabled()
|
boolean |
isWarnEnabled()
|
void |
trace(java.lang.Object arg0)
|
void |
trace(java.lang.Object arg0,
java.lang.Throwable arg1)
|
void |
warn(java.lang.Object arg0)
|
void |
warn(java.lang.Object arg0,
java.lang.Throwable arg1)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApacheCommonLoggingLogBridge
public ApacheCommonLoggingLogBridge()
ApacheCommonLoggingLogBridge
public ApacheCommonLoggingLogBridge(java.lang.String loggerName)
Initialize
public static void Initialize()
debug
public void debug(java.lang.Object arg0)
- Specified by:
debug
in interface org.apache.commons.logging.Log
debug
public void debug(java.lang.Object arg0,
java.lang.Throwable arg1)
- Specified by:
debug
in interface org.apache.commons.logging.Log
error
public void error(java.lang.Object arg0)
- Specified by:
error
in interface org.apache.commons.logging.Log
error
public void error(java.lang.Object arg0,
java.lang.Throwable arg1)
- Specified by:
error
in interface org.apache.commons.logging.Log
fatal
public void fatal(java.lang.Object arg0)
- Specified by:
fatal
in interface org.apache.commons.logging.Log
fatal
public void fatal(java.lang.Object arg0,
java.lang.Throwable arg1)
- Specified by:
fatal
in interface org.apache.commons.logging.Log
info
public void info(java.lang.Object arg0)
- Specified by:
info
in interface org.apache.commons.logging.Log
info
public void info(java.lang.Object arg0,
java.lang.Throwable arg1)
- Specified by:
info
in interface org.apache.commons.logging.Log
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interface org.apache.commons.logging.Log
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interface org.apache.commons.logging.Log
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabled
in interface org.apache.commons.logging.Log
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interface org.apache.commons.logging.Log
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interface org.apache.commons.logging.Log
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interface org.apache.commons.logging.Log
trace
public void trace(java.lang.Object arg0)
- Specified by:
trace
in interface org.apache.commons.logging.Log
trace
public void trace(java.lang.Object arg0,
java.lang.Throwable arg1)
- Specified by:
trace
in interface org.apache.commons.logging.Log
warn
public void warn(java.lang.Object arg0)
- Specified by:
warn
in interface org.apache.commons.logging.Log
warn
public void warn(java.lang.Object arg0,
java.lang.Throwable arg1)
- Specified by:
warn
in interface org.apache.commons.logging.Log