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 void
debug(Object o)
void
debug(Object o, Throwable throwable)
void
error(Object o)
void
error(Object o, Throwable throwable)
void
fatal(Object o)
void
fatal(Object o, Throwable throwable)
void
info(Object o)
void
info(Object o, Throwable throwable)
void
trace(Object o)
void
trace(Object o, Throwable throwable)
void
warn(Object o)
void
warn(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:
trace
in interfaceorg.apache.commons.logging.Log
- Overrides:
trace
in classCorrelationMDCAwareLogger
-
trace
public void trace(Object o, Throwable throwable)
- Specified by:
trace
in interfaceorg.apache.commons.logging.Log
- Overrides:
trace
in classCorrelationMDCAwareLogger
-
debug
public void debug(Object o)
- Specified by:
debug
in interfaceorg.apache.commons.logging.Log
- Overrides:
debug
in classCorrelationMDCAwareLogger
-
debug
public void debug(Object o, Throwable throwable)
- Specified by:
debug
in interfaceorg.apache.commons.logging.Log
- Overrides:
debug
in classCorrelationMDCAwareLogger
-
info
public void info(Object o)
- Specified by:
info
in interfaceorg.apache.commons.logging.Log
- Overrides:
info
in classCorrelationMDCAwareLogger
-
info
public void info(Object o, Throwable throwable)
- Specified by:
info
in interfaceorg.apache.commons.logging.Log
- Overrides:
info
in classCorrelationMDCAwareLogger
-
warn
public void warn(Object o)
- Specified by:
warn
in interfaceorg.apache.commons.logging.Log
- Overrides:
warn
in classCorrelationMDCAwareLogger
-
warn
public void warn(Object o, Throwable throwable)
- Specified by:
warn
in interfaceorg.apache.commons.logging.Log
- Overrides:
warn
in classCorrelationMDCAwareLogger
-
error
public void error(Object o)
- Specified by:
error
in interfaceorg.apache.commons.logging.Log
- Overrides:
error
in classCorrelationMDCAwareLogger
-
error
public void error(Object o, Throwable throwable)
- Specified by:
error
in interfaceorg.apache.commons.logging.Log
- Overrides:
error
in classCorrelationMDCAwareLogger
-
fatal
public void fatal(Object o)
- Specified by:
fatal
in interfaceorg.apache.commons.logging.Log
- Overrides:
fatal
in classCorrelationMDCAwareLogger
-
fatal
public void fatal(Object o, Throwable throwable)
- Specified by:
fatal
in interfaceorg.apache.commons.logging.Log
- Overrides:
fatal
in classCorrelationMDCAwareLogger
-
-