Package org.apache.commons.logging.impl
Class Log4JLogger
java.lang.Object
org.apache.commons.logging.impl.Log4JLogger
- All Implemented Interfaces:
- Serializable,- Log
Deprecated.
Scheduled for removal since version 1.x of Log4j has reached end-of-life.
Implements 
Log to map directly to a
 Logger for Apache Log4J version 1.2.
 Initial configuration of the corresponding Logger instances should be done in the usual manner, as outlined in the Log4J documentation.
The reason this logger is distinct from the 1.3.0 logger is that in version 1.2 of Log4J:
- class Logger takes Priority parameters not Level parameters.
- class Level extends Priority
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.Constructs a new instance.Log4JLogger(String name) Deprecated.Base constructor.Log4JLogger(org.apache.log4j.Logger logger) Deprecated.For use with a Log4j factory.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.Logs a message withorg.apache.log4j.Priority.DEBUG.voidDeprecated.Logs a message withorg.apache.log4j.Priority.DEBUG.voidDeprecated.Logs a message withorg.apache.log4j.Priority.ERROR.voidDeprecated.Logs a message withorg.apache.log4j.Priority.ERROR.voidDeprecated.Logs a message withorg.apache.log4j.Priority.FATAL.voidDeprecated.Logs a message withorg.apache.log4j.Priority.FATAL.org.apache.log4j.LoggerDeprecated.Gets the native Logger instance we are using.voidDeprecated.Logs a message withorg.apache.log4j.Priority.INFO.voidDeprecated.Logs a message withorg.apache.log4j.Priority.INFO.booleanDeprecated.Tests whether the Log4j Logger used is enabled forDEBUGpriority.booleanDeprecated.Tests whether the Log4j Logger used is enabled forERRORpriority.booleanDeprecated.Tests whether the Log4j Logger used is enabled forFATALpriority.booleanDeprecated.Tests whether the Log4j Logger used is enabled forINFOpriority.booleanDeprecated.Tests whether the Log4j Logger used is enabled forTRACEpriority.booleanDeprecated.Tests whether the Log4j Logger used is enabled forWARNpriority.voidDeprecated.Logs a message withorg.apache.log4j.Priority.TRACE.voidDeprecated.Logs a message withorg.apache.log4j.Priority.TRACE.voidDeprecated.Logs a message withorg.apache.log4j.Priority.WARN.voidDeprecated.Logs a message withorg.apache.log4j.Priority.WARN.
- 
Constructor Details- 
Log4JLoggerpublic Log4JLogger()Deprecated.Constructs a new instance.
- 
Log4JLoggerDeprecated.For use with a Log4j factory.- Parameters:
- logger- Logger.
 
- 
Log4JLoggerDeprecated.Base constructor.- Parameters:
- name- name.
 
 
- 
- 
Method Details- 
debugDeprecated.Logs a message withorg.apache.log4j.Priority.DEBUG.
- 
debugDeprecated.Logs a message withorg.apache.log4j.Priority.DEBUG.
- 
errorDeprecated.Logs a message withorg.apache.log4j.Priority.ERROR.
- 
errorDeprecated.Logs a message withorg.apache.log4j.Priority.ERROR.
- 
fatalDeprecated.Logs a message withorg.apache.log4j.Priority.FATAL.
- 
fatalDeprecated.Logs a message withorg.apache.log4j.Priority.FATAL.
- 
getLoggerDeprecated.Gets the native Logger instance we are using.- Returns:
- the native Logger instance we are using.
 
- 
infoDeprecated.Logs a message withorg.apache.log4j.Priority.INFO.
- 
infoDeprecated.Logs a message withorg.apache.log4j.Priority.INFO.
- 
isDebugEnabledDeprecated.Tests whether the Log4j Logger used is enabled forDEBUGpriority.- Specified by:
- isDebugEnabledin interface- Log
- Returns:
- true if debug is enabled in the underlying logger.
 
- 
isErrorEnabledDeprecated.Tests whether the Log4j Logger used is enabled forERRORpriority.- Specified by:
- isErrorEnabledin interface- Log
- Returns:
- true if error is enabled in the underlying logger.
 
- 
isFatalEnabledDeprecated.Tests whether the Log4j Logger used is enabled forFATALpriority.- Specified by:
- isFatalEnabledin interface- Log
- Returns:
- true if fatal is enabled in the underlying logger.
 
- 
isInfoEnabledDeprecated.Tests whether the Log4j Logger used is enabled forINFOpriority.- Specified by:
- isInfoEnabledin interface- Log
- Returns:
- true if info is enabled in the underlying logger.
 
- 
isTraceEnabledDeprecated.Tests whether the Log4j Logger used is enabled forTRACEpriority. When using a Log4j version that does not support the TRACE level, this call will report whetherDEBUGis enabled or not.- Specified by:
- isTraceEnabledin interface- Log
- Returns:
- true if trace is enabled in the underlying logger.
 
- 
isWarnEnabledDeprecated.Tests whether the Log4j Logger used is enabled forWARNpriority.- Specified by:
- isWarnEnabledin interface- Log
- Returns:
- true if warn is enabled in the underlying logger.
 
- 
traceDeprecated.Logs a message withorg.apache.log4j.Priority.TRACE. When using a Log4j version that does not support theTRACElevel, the message will be logged at theDEBUGlevel.
- 
traceDeprecated.Logs a message withorg.apache.log4j.Priority.TRACE. When using a Log4j version that does not support theTRACElevel, the message will be logged at theDEBUGlevel.
- 
warnDeprecated.Logs a message withorg.apache.log4j.Priority.WARN.
- 
warnDeprecated.Logs a message withorg.apache.log4j.Priority.WARN.
 
-