Package org.apache.commons.logging.impl
Class LogKitLogger
java.lang.Object
org.apache.commons.logging.impl.LogKitLogger
- All Implemented Interfaces:
Serializable,Log
Deprecated.
Scheduled for removal because the Apache Avalon Project has been discontinued.
Implements
org.apache.commons.logging.Log
to wrap the Apache Avalon Logkit
logging system. Configuration of LogKit is left to the user.
LogKit accepts only String messages.
Therefore, this implementation converts object messages into strings
by called their toString() method before logging them.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.log.LoggerDeprecated.Logging goes to thisLogKitloggerprotected StringDeprecated.Name of this loggerprivate static final longDeprecated.Serializable version identifier. -
Constructor Summary
ConstructorsConstructorDescriptionLogKitLogger(String name) Deprecated.ConstructsLogKitLoggerwhich wraps theLogKitlogger with given name. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Logs a message withorg.apache.log.Priority.DEBUG.voidDeprecated.Logs a message withorg.apache.log.Priority.DEBUG.voidDeprecated.Logs a message withorg.apache.log.Priority.ERROR.voidDeprecated.Logs a message withorg.apache.log.Priority.ERROR.voidDeprecated.Logs a message withorg.apache.log.Priority.FATAL_ERROR.voidDeprecated.Logs a message withorg.apache.log.Priority.FATAL_ERROR.org.apache.log.LoggerDeprecated.Gets the underlying Logger we are using.voidDeprecated.Logs a message withorg.apache.log.Priority.INFO.voidDeprecated.Logs a message withorg.apache.log.Priority.INFO.booleanDeprecated.Checks whether theLogKitlogger will log messages of priorityDEBUG.booleanDeprecated.Checks whether theLogKitlogger will log messages of priorityERROR.booleanDeprecated.Checks whether theLogKitlogger will log messages of priorityFATAL_ERROR.booleanDeprecated.Checks whether theLogKitlogger will log messages of priorityINFO.booleanDeprecated.Checks whether theLogKitlogger will log messages of priorityDEBUG.booleanDeprecated.Checks whether theLogKitlogger will log messages of priorityWARN.voidDeprecated.Logs a message withorg.apache.log.Priority.DEBUG.voidDeprecated.Logs a message withorg.apache.log.Priority.DEBUG.voidDeprecated.Logs a message withorg.apache.log.Priority.WARN.voidDeprecated.Logs a message withorg.apache.log.Priority.WARN.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.Serializable version identifier.- See Also:
-
logger
protected transient volatile org.apache.log.Logger loggerDeprecated.Logging goes to thisLogKitlogger -
name
Deprecated.Name of this logger
-
-
Constructor Details
-
LogKitLogger
Deprecated.ConstructsLogKitLoggerwhich wraps theLogKitlogger with given name.- Parameters:
name- log name
-
-
Method Details
-
debug
Deprecated.Logs a message withorg.apache.log.Priority.DEBUG. -
debug
Deprecated.Logs a message withorg.apache.log.Priority.DEBUG. -
error
Deprecated.Logs a message withorg.apache.log.Priority.ERROR. -
error
Deprecated.Logs a message withorg.apache.log.Priority.ERROR. -
fatal
Deprecated.Logs a message withorg.apache.log.Priority.FATAL_ERROR. -
fatal
Deprecated.Logs a message withorg.apache.log.Priority.FATAL_ERROR. -
getLogger
public org.apache.log.Logger getLogger()Deprecated.Gets the underlying Logger we are using.- Returns:
- the underlying Logger we are using.
-
info
Deprecated.Logs a message withorg.apache.log.Priority.INFO. -
info
Deprecated.Logs a message withorg.apache.log.Priority.INFO. -
isDebugEnabled
public boolean isDebugEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityDEBUG.- Specified by:
isDebugEnabledin interfaceLog- Returns:
- true if debug is enabled in the underlying logger.
-
isErrorEnabled
public boolean isErrorEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityERROR.- Specified by:
isErrorEnabledin interfaceLog- Returns:
- true if error is enabled in the underlying logger.
-
isFatalEnabled
public boolean isFatalEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityFATAL_ERROR.- Specified by:
isFatalEnabledin interfaceLog- Returns:
- true if fatal is enabled in the underlying logger.
-
isInfoEnabled
public boolean isInfoEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityINFO.- Specified by:
isInfoEnabledin interfaceLog- Returns:
- true if info is enabled in the underlying logger.
-
isTraceEnabled
public boolean isTraceEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityDEBUG.- Specified by:
isTraceEnabledin interfaceLog- Returns:
- true if trace is enabled in the underlying logger.
-
isWarnEnabled
public boolean isWarnEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityWARN.- Specified by:
isWarnEnabledin interfaceLog- Returns:
- true if warn is enabled in the underlying logger.
-
trace
Deprecated.Logs a message withorg.apache.log.Priority.DEBUG. -
trace
Deprecated.Logs a message withorg.apache.log.Priority.DEBUG. -
warn
Deprecated.Logs a message withorg.apache.log.Priority.WARN. -
warn
Deprecated.Logs a message withorg.apache.log.Priority.WARN.
-