Class CorrelationMDCImmediateLogger
- java.lang.Object
-
- org.apache.synapse.commons.logger.CorrelationMDCAwareLogger
-
- org.apache.synapse.commons.logger.CorrelationMDCImmediateLogger
-
- All Implemented Interfaces:
org.apache.commons.logging.Log
public class CorrelationMDCImmediateLogger extends CorrelationMDCAwareLogger
Responsible for providing wrapper implementation for CorrelationMDCAwareLogger. The logging wrapper methods will remove the correlation id from the MDC after logging from CorrelationMDCAwareLogger.
-
-
Constructor Summary
Constructors Constructor Description CorrelationMDCImmediateLogger(String correlationId, org.apache.commons.logging.Log log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Object o)voiddebug(Object o, Throwable throwable)voiderror(Object o)voiderror(Object o, Throwable throwable)voidfatal(Object o)voidfatal(Object o, Throwable throwable)voidinfo(Object o)voidinfo(Object o, Throwable throwable)voidtrace(Object o)voidtrace(Object o, Throwable throwable)voidwarn(Object o)voidwarn(Object o, Throwable throwable)-
Methods inherited from class org.apache.synapse.commons.logger.CorrelationMDCAwareLogger
isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled
-
-
-
-
Constructor Detail
-
CorrelationMDCImmediateLogger
public CorrelationMDCImmediateLogger(String correlationId, org.apache.commons.logging.Log log)
-
-
Method Detail
-
trace
public void trace(Object o)
- Specified by:
tracein interfaceorg.apache.commons.logging.Log- Overrides:
tracein classCorrelationMDCAwareLogger
-
trace
public void trace(Object o, Throwable throwable)
- Specified by:
tracein interfaceorg.apache.commons.logging.Log- Overrides:
tracein classCorrelationMDCAwareLogger
-
debug
public void debug(Object o)
- Specified by:
debugin interfaceorg.apache.commons.logging.Log- Overrides:
debugin classCorrelationMDCAwareLogger
-
debug
public void debug(Object o, Throwable throwable)
- Specified by:
debugin interfaceorg.apache.commons.logging.Log- Overrides:
debugin classCorrelationMDCAwareLogger
-
info
public void info(Object o)
- Specified by:
infoin interfaceorg.apache.commons.logging.Log- Overrides:
infoin classCorrelationMDCAwareLogger
-
info
public void info(Object o, Throwable throwable)
- Specified by:
infoin interfaceorg.apache.commons.logging.Log- Overrides:
infoin classCorrelationMDCAwareLogger
-
warn
public void warn(Object o)
- Specified by:
warnin interfaceorg.apache.commons.logging.Log- Overrides:
warnin classCorrelationMDCAwareLogger
-
warn
public void warn(Object o, Throwable throwable)
- Specified by:
warnin interfaceorg.apache.commons.logging.Log- Overrides:
warnin classCorrelationMDCAwareLogger
-
error
public void error(Object o)
- Specified by:
errorin interfaceorg.apache.commons.logging.Log- Overrides:
errorin classCorrelationMDCAwareLogger
-
error
public void error(Object o, Throwable throwable)
- Specified by:
errorin interfaceorg.apache.commons.logging.Log- Overrides:
errorin classCorrelationMDCAwareLogger
-
fatal
public void fatal(Object o)
- Specified by:
fatalin interfaceorg.apache.commons.logging.Log- Overrides:
fatalin classCorrelationMDCAwareLogger
-
fatal
public void fatal(Object o, Throwable throwable)
- Specified by:
fatalin interfaceorg.apache.commons.logging.Log- Overrides:
fatalin classCorrelationMDCAwareLogger
-
-