Package org.slf4j.reload4j
Class Reload4jLoggerAdapter
java.lang.Object
org.slf4j.helpers.AbstractLogger
org.slf4j.helpers.LegacyAbstractLogger
org.slf4j.reload4j.Reload4jLoggerAdapter
- All Implemented Interfaces:
- Serializable,- Logger,- LocationAwareLogger,- LoggingEventAware
public final class Reload4jLoggerAdapter
extends LegacyAbstractLogger
implements LocationAwareLogger, LoggingEventAware, Serializable
A wrapper over 
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.
- Since:
- 2.0.0-alpha6
- Author:
- Ceki Gülcü
- See Also:
- 
Field SummaryFields inherited from class org.slf4j.helpers.AbstractLoggernameFields inherited from interface org.slf4j.spi.LocationAwareLoggerDEBUG_INT, ERROR_INT, INFO_INT, TRACE_INT, WARN_INTFields inherited from interface org.slf4j.LoggerROOT_LOGGER_NAME
- 
Method SummaryModifier and TypeMethodDescriptionprotected Stringprotected voidhandleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] arguments, Throwable throwable) Given various arguments passed as parameters, perform actual logging.booleanIs this logger instance enabled for the DEBUG level?booleanIs this logger instance enabled for level ERROR?booleanIs this logger instance enabled for the INFO level?booleanIs this logger instance enabled for the TRACE level?booleanIs this logger instance enabled for the WARN level?voidlog(LoggingEvent event) Called bySubstituteLoggeror byLoggingEventBuilderinstancesvoidPrinting method with support for location information.Methods inherited from class org.slf4j.helpers.LegacyAbstractLoggerisDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabledMethods inherited from class org.slf4j.helpers.AbstractLoggerdebug, 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, warnMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.slf4j.LoggeratDebug, 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
- 
Method Details- 
isTraceEnabledIs this logger instance enabled for the TRACE level?- Specified by:
- isTraceEnabledin interface- Logger
- Returns:
- True if this Logger is enabled for level TRACE, false otherwise.
 
- 
isDebugEnabledIs this logger instance enabled for the DEBUG level?- Specified by:
- isDebugEnabledin interface- Logger
- Returns:
- True if this Logger is enabled for level DEBUG, false otherwise.
 
- 
isInfoEnabledIs this logger instance enabled for the INFO level?- Specified by:
- isInfoEnabledin interface- Logger
- Returns:
- True if this Logger is enabled for the INFO level, false otherwise.
 
- 
isWarnEnabledIs this logger instance enabled for the WARN level?- Specified by:
- isWarnEnabledin interface- Logger
- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
 
- 
isErrorEnabledIs this logger instance enabled for level ERROR?- Specified by:
- isErrorEnabledin interface- Logger
- Returns:
- True if this Logger is enabled for level ERROR, false otherwise.
 
- 
logpublic void log(Marker marker, String callerFQCN, int level, String msg, Object[] arguments, Throwable t) Description copied from interface:LocationAwareLoggerPrinting method with support for location information.- Specified by:
- login interface- LocationAwareLogger
- Parameters:
- 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 interface
- msg- The message for the log event
- t- Throwable associated with the log event, may be null.
 
- 
handleNormalizedLoggingCallprotected void handleNormalizedLoggingCall(Level level, Marker marker, String msg, Object[] arguments, Throwable throwable) Description copied from class:AbstractLoggerGiven various arguments passed as parameters, perform actual logging.This method assumes that the separation of the args array into actual objects and a throwable has been already operated. - Specified by:
- handleNormalizedLoggingCallin class- AbstractLogger
- Parameters:
- level- the SLF4J level for this event
- marker- The marker to be used for this event, may be null.
- msg- The message pattern which will be parsed and formatted
- arguments- the array of arguments to be formatted, may be null
- throwable- The exception whose stack trace should be logged, may be null
 
- 
logCalled bySubstituteLoggeror byLoggingEventBuilderinstances- Specified by:
- login interface- LoggingEventAware
- Parameters:
- event-
 
- 
getFullyQualifiedCallerName- Specified by:
- getFullyQualifiedCallerNamein class- AbstractLogger
 
 
-