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 Summary
ConstructorDescriptionDeprecated.Constructs a new instance.Log4JLogger
(String name) Deprecated.Base constructor.Log4JLogger
(org.apache.log4j.Logger logger) Deprecated.For use with a Log4j factory. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Logs a message withorg.apache.log4j.Priority.DEBUG
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.DEBUG
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.ERROR
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.ERROR
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.FATAL
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.FATAL
.org.apache.log4j.Logger
Deprecated.Gets the native Logger instance we are using.void
Deprecated.Logs a message withorg.apache.log4j.Priority.INFO
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.INFO
.boolean
Deprecated.Tests whether the Log4j Logger used is enabled forDEBUG
priority.boolean
Deprecated.Tests whether the Log4j Logger used is enabled forERROR
priority.boolean
Deprecated.Tests whether the Log4j Logger used is enabled forFATAL
priority.boolean
Deprecated.Tests whether the Log4j Logger used is enabled forINFO
priority.boolean
Deprecated.Tests whether the Log4j Logger used is enabled forTRACE
priority.boolean
Deprecated.Tests whether the Log4j Logger used is enabled forWARN
priority.void
Deprecated.Logs a message withorg.apache.log4j.Priority.TRACE
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.TRACE
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.WARN
.void
Deprecated.Logs a message withorg.apache.log4j.Priority.WARN
.
-
Constructor Details
-
Log4JLogger
public Log4JLogger()Deprecated.Constructs a new instance. -
Log4JLogger
Deprecated.For use with a Log4j factory.- Parameters:
logger
- Logger.
-
Log4JLogger
Deprecated.Base constructor.- Parameters:
name
- name.
-
-
Method Details
-
debug
Deprecated.Logs a message withorg.apache.log4j.Priority.DEBUG
. -
debug
Deprecated.Logs a message withorg.apache.log4j.Priority.DEBUG
. -
error
Deprecated.Logs a message withorg.apache.log4j.Priority.ERROR
. -
error
Deprecated.Logs a message withorg.apache.log4j.Priority.ERROR
. -
fatal
Deprecated.Logs a message withorg.apache.log4j.Priority.FATAL
. -
fatal
Deprecated.Logs a message withorg.apache.log4j.Priority.FATAL
. -
getLogger
Deprecated.Gets the native Logger instance we are using.- Returns:
- the native Logger instance we are using.
-
info
Deprecated.Logs a message withorg.apache.log4j.Priority.INFO
. -
info
Deprecated.Logs a message withorg.apache.log4j.Priority.INFO
. -
isDebugEnabled
Deprecated.Tests whether the Log4j Logger used is enabled forDEBUG
priority.- Specified by:
isDebugEnabled
in interfaceLog
- Returns:
- true if debug is enabled in the underlying logger.
-
isErrorEnabled
Deprecated.Tests whether the Log4j Logger used is enabled forERROR
priority.- Specified by:
isErrorEnabled
in interfaceLog
- Returns:
- true if error is enabled in the underlying logger.
-
isFatalEnabled
Deprecated.Tests whether the Log4j Logger used is enabled forFATAL
priority.- Specified by:
isFatalEnabled
in interfaceLog
- Returns:
- true if fatal is enabled in the underlying logger.
-
isInfoEnabled
Deprecated.Tests whether the Log4j Logger used is enabled forINFO
priority.- Specified by:
isInfoEnabled
in interfaceLog
- Returns:
- true if info is enabled in the underlying logger.
-
isTraceEnabled
Deprecated.Tests whether the Log4j Logger used is enabled forTRACE
priority. When using a Log4j version that does not support the TRACE level, this call will report whetherDEBUG
is enabled or not.- Specified by:
isTraceEnabled
in interfaceLog
- Returns:
- true if trace is enabled in the underlying logger.
-
isWarnEnabled
Deprecated.Tests whether the Log4j Logger used is enabled forWARN
priority.- Specified by:
isWarnEnabled
in interfaceLog
- Returns:
- true if warn is enabled in the underlying logger.
-
trace
Deprecated.Logs a message withorg.apache.log4j.Priority.TRACE
. When using a Log4j version that does not support theTRACE
level, the message will be logged at theDEBUG
level. -
trace
Deprecated.Logs a message withorg.apache.log4j.Priority.TRACE
. When using a Log4j version that does not support theTRACE
level, the message will be logged at theDEBUG
level. -
warn
Deprecated.Logs a message withorg.apache.log4j.Priority.WARN
. -
warn
Deprecated.Logs a message withorg.apache.log4j.Priority.WARN
.
-