Serializable
, org.refcodes.logger.RuntimeLoggerAccessor
, org.slf4j.Logger
, org.slf4j.spi.LocationAwareLogger
public final class RuntimeLoggerAdapter extends org.slf4j.helpers.MarkerIgnoringBase implements org.refcodes.logger.RuntimeLoggerAccessor, org.slf4j.spi.LocationAwareLogger, Serializable
Modifier and Type | Field | Description |
---|---|---|
protected String |
name |
Constructor | Description |
---|---|
RuntimeLoggerAdapter(org.refcodes.logger.RuntimeLogger logger) |
Instantiates a new runtime logger adapter.
|
Modifier and Type | Method | Description |
---|---|---|
void |
debug(String msg) |
|
void |
debug(String format,
Object arg) |
|
void |
debug(String format,
Object... args) |
|
void |
debug(String format,
Object arg1,
Object arg2) |
|
void |
debug(String msg,
Throwable t) |
|
void |
error(String msg) |
|
void |
error(String format,
Object arg) |
|
void |
error(String format,
Object... args) |
|
void |
error(String format,
Object arg1,
Object arg2) |
|
void |
error(String msg,
Throwable t) |
|
String |
getName() |
|
org.refcodes.logger.RuntimeLogger |
getRuntimeLogger() |
In case the
Slf4jRuntimeLoggerImpl (as created by the
Slf4jRuntimeLoggerFactorySingleton ) detects that SLF4J has
bound a RuntimeLoggerAdapter (i.e. the REFCODES.ORG SLF4J
binding), it directly delegates its method calls to the wrapped
RuntimeLogger instead of marshaling a log request through this
RuntimeLoggerAdapter ; as marshaling would mean consolidating of
various detailed LogPriority levels to a single SLF4J log level. |
void |
info(String msg) |
|
void |
info(String format,
Object arg) |
|
void |
info(String format,
Object... args) |
|
void |
info(String format,
Object arg1,
Object arg2) |
|
void |
info(String msg,
Throwable t) |
|
boolean |
isDebugEnabled() |
|
boolean |
isErrorEnabled() |
|
boolean |
isInfoEnabled() |
|
boolean |
isTraceEnabled() |
|
boolean |
isWarnEnabled() |
|
void |
log(org.slf4j.Marker marker,
String callerFQCN,
int level,
String msg,
Object[] args,
Throwable t) |
|
protected Object |
readResolve() |
|
void |
trace(String msg) |
|
void |
trace(String format,
Object arg) |
|
void |
trace(String format,
Object... args) |
|
void |
trace(String format,
Object arg1,
Object arg2) |
|
void |
trace(String msg,
Throwable t) |
|
void |
warn(String msg) |
|
void |
warn(String format,
Object arg) |
|
void |
warn(String format,
Object... args) |
|
void |
warn(String format,
Object arg1,
Object arg2) |
|
void |
warn(String msg,
Throwable t) |
debug, debug, debug, debug, debug, error, error, error, error, error, getName, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
protected String name
public RuntimeLoggerAdapter(org.refcodes.logger.RuntimeLogger logger)
logger
- the loggerpublic boolean isTraceEnabled()
isTraceEnabled
in interface org.slf4j.Logger
public void trace(String msg)
trace
in interface org.slf4j.Logger
public void trace(String format, Object arg)
trace
in interface org.slf4j.Logger
public void trace(String format, Object arg1, Object arg2)
trace
in interface org.slf4j.Logger
public void trace(String format, Object... args)
trace
in interface org.slf4j.Logger
public boolean isDebugEnabled()
isDebugEnabled
in interface org.slf4j.Logger
public void debug(String msg)
debug
in interface org.slf4j.Logger
public void debug(String format, Object arg)
debug
in interface org.slf4j.Logger
public void debug(String format, Object arg1, Object arg2)
debug
in interface org.slf4j.Logger
public void debug(String format, Object... args)
debug
in interface org.slf4j.Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface org.slf4j.Logger
public void info(String msg)
info
in interface org.slf4j.Logger
public void info(String format, Object arg1, Object arg2)
info
in interface org.slf4j.Logger
public void info(String format, Object... args)
info
in interface org.slf4j.Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface org.slf4j.Logger
public void warn(String msg)
warn
in interface org.slf4j.Logger
public void warn(String format, Object arg1, Object arg2)
warn
in interface org.slf4j.Logger
public void warn(String format, Object... args)
warn
in interface org.slf4j.Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface org.slf4j.Logger
public void error(String msg)
error
in interface org.slf4j.Logger
public void error(String format, Object arg)
error
in interface org.slf4j.Logger
public void error(String format, Object arg1, Object arg2)
error
in interface org.slf4j.Logger
public void error(String format, Object... args)
error
in interface org.slf4j.Logger
public void log(org.slf4j.Marker marker, String callerFQCN, int level, String msg, Object[] args, Throwable t)
log
in interface org.slf4j.spi.LocationAwareLogger
public org.refcodes.logger.RuntimeLogger getRuntimeLogger()
Slf4jRuntimeLoggerImpl
(as created by the
Slf4jRuntimeLoggerFactorySingleton
) detects that SLF4J has
bound a RuntimeLoggerAdapter
(i.e. the REFCODES.ORG SLF4J
binding), it directly delegates its method calls to the wrapped
RuntimeLogger
instead of marshaling a log request through this
RuntimeLoggerAdapter
; as marshaling would mean consolidating of
various detailed LogPriority
levels to a single SLF4J log level.getRuntimeLogger
in interface org.refcodes.logger.RuntimeLoggerAccessor
RuntimeLogger
used by the
Slf4jRuntimeLoggerImpl
when possible.public String getName()
getName
in interface org.slf4j.Logger
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
Copyright © 2018. All rights reserved.