public final class Reload4jLoggerAdapter extends LegacyAbstractLogger implements LocationAwareLogger, LoggingEventAware, Serializable
org.apache.log4j.Logger
conforming to the Logger
interface.
Note that the logging levels mentioned in this class refer to those defined
in the
org.apache.log4j.Level
class.
This class is a copy-and-paste of Log4j12LoggerAdapter from the slf4j-log4j12 module.
name
DEBUG_INT, ERROR_INT, INFO_INT, TRACE_INT, WARN_INT
ROOT_LOGGER_NAME
Modifier and Type | Method and Description |
---|---|
protected String |
getFullyQualifiedCallerName() |
protected void |
handleNormalizedLoggingCall(Level level,
Marker marker,
String msg,
Object[] arguments,
Throwable throwable)
Given various arguments passed as parameters perform actual logging.
|
boolean |
isDebugEnabled()
Is this logger instance enabled for the DEBUG level?
|
boolean |
isErrorEnabled()
Is this logger instance enabled for level ERROR?
|
boolean |
isInfoEnabled()
Is this logger instance enabled for the INFO level?
|
boolean |
isTraceEnabled()
Is this logger instance enabled for the TRACE level?
|
boolean |
isWarnEnabled()
Is this logger instance enabled for the WARN level?
|
void |
log(LoggingEvent event)
Called by
SubstituteLogger or by LoggingEventBuilder instances |
void |
log(Marker marker,
String callerFQCN,
int level,
String msg,
Object[] arguments,
Throwable t)
Printing method with support for location information.
|
isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, readResolve, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
atDebug, atError, atInfo, atLevel, atTrace, atWarn, debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isEnabledForLevel, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, makeLoggingEventBuilder, trace, trace, trace, trace, trace, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn
public boolean isTraceEnabled()
isTraceEnabled
in interface Logger
public boolean isDebugEnabled()
isDebugEnabled
in interface Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface Logger
public void log(Marker marker, String callerFQCN, int level, String msg, Object[] arguments, Throwable t)
LocationAwareLogger
log
in interface LocationAwareLogger
marker
- The marker to be used for this event, may be null.callerFQCN
- The fully qualified class name of the logger instance,
typically the logger class, logger bridge or a logger wrapper.level
- One of the level integers defined in this interfacemsg
- The message for the log eventt
- Throwable associated with the log event, may be null.protected void handleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] arguments, Throwable throwable)
AbstractLogger
This method assumes that the separation of the args array into actual objects and a throwable has been already operated.
handleNormalizedLoggingCall
in class AbstractLogger
public void log(LoggingEvent event)
SubstituteLogger
or by LoggingEventBuilder
instanceslog
in interface LoggingEventAware
event
- protected String getFullyQualifiedCallerName()
getFullyQualifiedCallerName
in class AbstractLogger
Copyright © 2005–2022 QOS.ch. All rights reserved.