org.mule.module.logging
Class DispatchingLogger
java.lang.Object
org.mule.module.logging.DispatchingLogger
- All Implemented Interfaces:
- org.slf4j.Logger
public class DispatchingLogger
- extends Object
- implements org.slf4j.Logger
A solution for logger references saved as static fields. When such logger is declared
the log entries end up in the wrong hierarchy/appender.
| Fields inherited from interface org.slf4j.Logger |
ROOT_LOGGER_NAME |
|
Method Summary |
void |
debug(org.slf4j.Marker marker,
String msg)
|
void |
debug(org.slf4j.Marker marker,
String format,
Object arg)
|
void |
debug(org.slf4j.Marker marker,
String format,
Object[] argArray)
|
void |
debug(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
|
void |
debug(org.slf4j.Marker marker,
String msg,
Throwable t)
|
void |
debug(String msg)
|
void |
debug(String format,
Object arg)
|
void |
debug(String format,
Object[] argArray)
|
void |
debug(String format,
Object arg1,
Object arg2)
|
void |
debug(String msg,
Throwable t)
|
void |
error(org.slf4j.Marker marker,
String msg)
|
void |
error(org.slf4j.Marker marker,
String format,
Object arg)
|
void |
error(org.slf4j.Marker marker,
String format,
Object[] argArray)
|
void |
error(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
|
void |
error(org.slf4j.Marker marker,
String msg,
Throwable t)
|
void |
error(String msg)
|
void |
error(String format,
Object arg)
|
void |
error(String format,
Object[] argArray)
|
void |
error(String format,
Object arg1,
Object arg2)
|
void |
error(String msg,
Throwable t)
|
MuleLoggerFactory |
getFactory()
|
protected org.slf4j.Logger |
getLogger()
Dispatches lookup to the factory to pick up the right logger based on the context classloader,
even if originally the logger was created with another classloader (which is the case with static
log refs). |
String |
getName()
|
void |
info(org.slf4j.Marker marker,
String msg)
|
void |
info(org.slf4j.Marker marker,
String format,
Object arg)
|
void |
info(org.slf4j.Marker marker,
String format,
Object[] argArray)
|
void |
info(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
|
void |
info(org.slf4j.Marker marker,
String msg,
Throwable t)
|
void |
info(String msg)
|
void |
info(String format,
Object arg)
|
void |
info(String format,
Object[] argArray)
|
void |
info(String format,
Object arg1,
Object arg2)
|
void |
info(String msg,
Throwable t)
|
boolean |
isDebugEnabled()
|
boolean |
isDebugEnabled(org.slf4j.Marker marker)
|
boolean |
isErrorEnabled()
|
boolean |
isErrorEnabled(org.slf4j.Marker marker)
|
boolean |
isInfoEnabled()
|
boolean |
isInfoEnabled(org.slf4j.Marker marker)
|
boolean |
isTraceEnabled()
|
boolean |
isTraceEnabled(org.slf4j.Marker marker)
|
boolean |
isWarnEnabled()
|
boolean |
isWarnEnabled(org.slf4j.Marker marker)
|
void |
trace(org.slf4j.Marker marker,
String msg)
|
void |
trace(org.slf4j.Marker marker,
String format,
Object arg)
|
void |
trace(org.slf4j.Marker marker,
String format,
Object[] argArray)
|
void |
trace(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
|
void |
trace(org.slf4j.Marker marker,
String msg,
Throwable t)
|
void |
trace(String msg)
|
void |
trace(String format,
Object arg)
|
void |
trace(String format,
Object[] argArray)
|
void |
trace(String format,
Object arg1,
Object arg2)
|
void |
trace(String msg,
Throwable t)
|
void |
warn(org.slf4j.Marker marker,
String msg)
|
void |
warn(org.slf4j.Marker marker,
String format,
Object arg)
|
void |
warn(org.slf4j.Marker marker,
String format,
Object[] argArray)
|
void |
warn(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
|
void |
warn(org.slf4j.Marker marker,
String msg,
Throwable t)
|
void |
warn(String msg)
|
void |
warn(String format,
Object arg)
|
void |
warn(String format,
Object[] argArray)
|
void |
warn(String format,
Object arg1,
Object arg2)
|
void |
warn(String msg,
Throwable t)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_CCL_CLASSLOADER
protected static final Integer NO_CCL_CLASSLOADER
originalLogger
protected org.slf4j.Logger originalLogger
originalClassLoaderHash
protected Integer originalClassLoaderHash
DispatchingLogger
public DispatchingLogger(org.slf4j.Logger originalLogger,
MuleLoggerFactory factory)
getName
public String getName()
- Specified by:
getName in interface org.slf4j.Logger
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled in interface org.slf4j.Logger
trace
public void trace(String msg)
- Specified by:
trace in interface org.slf4j.Logger
trace
public void trace(String format,
Object arg)
- Specified by:
trace in interface org.slf4j.Logger
trace
public void trace(String format,
Object arg1,
Object arg2)
- Specified by:
trace in interface org.slf4j.Logger
trace
public void trace(String format,
Object[] argArray)
- Specified by:
trace in interface org.slf4j.Logger
trace
public void trace(String msg,
Throwable t)
- Specified by:
trace in interface org.slf4j.Logger
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker)
- Specified by:
isTraceEnabled in interface org.slf4j.Logger
trace
public void trace(org.slf4j.Marker marker,
String msg)
- Specified by:
trace in interface org.slf4j.Logger
trace
public void trace(org.slf4j.Marker marker,
String format,
Object arg)
- Specified by:
trace in interface org.slf4j.Logger
trace
public void trace(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
- Specified by:
trace in interface org.slf4j.Logger
trace
public void trace(org.slf4j.Marker marker,
String format,
Object[] argArray)
- Specified by:
trace in interface org.slf4j.Logger
trace
public void trace(org.slf4j.Marker marker,
String msg,
Throwable t)
- Specified by:
trace in interface org.slf4j.Logger
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled in interface org.slf4j.Logger
debug
public void debug(String msg)
- Specified by:
debug in interface org.slf4j.Logger
debug
public void debug(String format,
Object arg)
- Specified by:
debug in interface org.slf4j.Logger
debug
public void debug(String format,
Object arg1,
Object arg2)
- Specified by:
debug in interface org.slf4j.Logger
debug
public void debug(String format,
Object[] argArray)
- Specified by:
debug in interface org.slf4j.Logger
debug
public void debug(String msg,
Throwable t)
- Specified by:
debug in interface org.slf4j.Logger
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker)
- Specified by:
isDebugEnabled in interface org.slf4j.Logger
debug
public void debug(org.slf4j.Marker marker,
String msg)
- Specified by:
debug in interface org.slf4j.Logger
debug
public void debug(org.slf4j.Marker marker,
String format,
Object arg)
- Specified by:
debug in interface org.slf4j.Logger
debug
public void debug(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
- Specified by:
debug in interface org.slf4j.Logger
debug
public void debug(org.slf4j.Marker marker,
String format,
Object[] argArray)
- Specified by:
debug in interface org.slf4j.Logger
debug
public void debug(org.slf4j.Marker marker,
String msg,
Throwable t)
- Specified by:
debug in interface org.slf4j.Logger
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled in interface org.slf4j.Logger
info
public void info(String msg)
- Specified by:
info in interface org.slf4j.Logger
info
public void info(String format,
Object arg)
- Specified by:
info in interface org.slf4j.Logger
info
public void info(String format,
Object arg1,
Object arg2)
- Specified by:
info in interface org.slf4j.Logger
info
public void info(String format,
Object[] argArray)
- Specified by:
info in interface org.slf4j.Logger
info
public void info(String msg,
Throwable t)
- Specified by:
info in interface org.slf4j.Logger
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker)
- Specified by:
isInfoEnabled in interface org.slf4j.Logger
info
public void info(org.slf4j.Marker marker,
String msg)
- Specified by:
info in interface org.slf4j.Logger
info
public void info(org.slf4j.Marker marker,
String format,
Object arg)
- Specified by:
info in interface org.slf4j.Logger
info
public void info(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
- Specified by:
info in interface org.slf4j.Logger
info
public void info(org.slf4j.Marker marker,
String format,
Object[] argArray)
- Specified by:
info in interface org.slf4j.Logger
info
public void info(org.slf4j.Marker marker,
String msg,
Throwable t)
- Specified by:
info in interface org.slf4j.Logger
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled in interface org.slf4j.Logger
warn
public void warn(String msg)
- Specified by:
warn in interface org.slf4j.Logger
warn
public void warn(String format,
Object arg)
- Specified by:
warn in interface org.slf4j.Logger
warn
public void warn(String format,
Object[] argArray)
- Specified by:
warn in interface org.slf4j.Logger
warn
public void warn(String format,
Object arg1,
Object arg2)
- Specified by:
warn in interface org.slf4j.Logger
warn
public void warn(String msg,
Throwable t)
- Specified by:
warn in interface org.slf4j.Logger
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker)
- Specified by:
isWarnEnabled in interface org.slf4j.Logger
warn
public void warn(org.slf4j.Marker marker,
String msg)
- Specified by:
warn in interface org.slf4j.Logger
warn
public void warn(org.slf4j.Marker marker,
String format,
Object arg)
- Specified by:
warn in interface org.slf4j.Logger
warn
public void warn(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
- Specified by:
warn in interface org.slf4j.Logger
warn
public void warn(org.slf4j.Marker marker,
String format,
Object[] argArray)
- Specified by:
warn in interface org.slf4j.Logger
warn
public void warn(org.slf4j.Marker marker,
String msg,
Throwable t)
- Specified by:
warn in interface org.slf4j.Logger
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled in interface org.slf4j.Logger
error
public void error(String msg)
- Specified by:
error in interface org.slf4j.Logger
error
public void error(String format,
Object arg)
- Specified by:
error in interface org.slf4j.Logger
error
public void error(String format,
Object arg1,
Object arg2)
- Specified by:
error in interface org.slf4j.Logger
error
public void error(String format,
Object[] argArray)
- Specified by:
error in interface org.slf4j.Logger
error
public void error(String msg,
Throwable t)
- Specified by:
error in interface org.slf4j.Logger
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker)
- Specified by:
isErrorEnabled in interface org.slf4j.Logger
error
public void error(org.slf4j.Marker marker,
String msg)
- Specified by:
error in interface org.slf4j.Logger
error
public void error(org.slf4j.Marker marker,
String format,
Object arg)
- Specified by:
error in interface org.slf4j.Logger
error
public void error(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2)
- Specified by:
error in interface org.slf4j.Logger
error
public void error(org.slf4j.Marker marker,
String format,
Object[] argArray)
- Specified by:
error in interface org.slf4j.Logger
error
public void error(org.slf4j.Marker marker,
String msg,
Throwable t)
- Specified by:
error in interface org.slf4j.Logger
getLogger
protected org.slf4j.Logger getLogger()
- Dispatches lookup to the factory to pick up the right logger based on the context classloader,
even if originally the logger was created with another classloader (which is the case with static
log refs).
getFactory
public MuleLoggerFactory getFactory()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.