Package org.apache.commons.logging.impl
Class LogKitLogger
- java.lang.Object
-
- org.apache.commons.logging.impl.LogKitLogger
-
- All Implemented Interfaces:
java.io.Serializable,Log
@Deprecated public class LogKitLogger extends java.lang.Object implements Log, java.io.Serializable
Deprecated.Scheduled for removal because the Apache Avalon Project has been discontinued.Implementsorg.apache.commons.logging.Logto wrap the Apache Avalon Logkit logging system. Configuration ofLogKitis left to the user.LogKitaccepts onlyStringmessages. Therefore, this implementation converts object messages into strings by called theirtoString()method before logging them.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.log.LoggerloggerDeprecated.Logging goes to thisLogKitloggerprotected java.lang.StringnameDeprecated.Name of this loggerprivate static longserialVersionUIDDeprecated.Serializable version identifier.
-
Constructor Summary
Constructors Constructor Description LogKitLogger(java.lang.String name)Deprecated.ConstructsLogKitLoggerwhich wraps theLogKitlogger with given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddebug(java.lang.Object message)Deprecated.Logs a message withorg.apache.log.Priority.DEBUG.voiddebug(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.DEBUG.voiderror(java.lang.Object message)Deprecated.Logs a message withorg.apache.log.Priority.ERROR.voiderror(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.ERROR.voidfatal(java.lang.Object message)Deprecated.Logs a message withorg.apache.log.Priority.FATAL_ERROR.voidfatal(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.FATAL_ERROR.org.apache.log.LoggergetLogger()Deprecated.Gets the underlying Logger we are using.voidinfo(java.lang.Object message)Deprecated.Logs a message withorg.apache.log.Priority.INFO.voidinfo(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.INFO.booleanisDebugEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityDEBUG.booleanisErrorEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityERROR.booleanisFatalEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityFATAL_ERROR.booleanisInfoEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityINFO.booleanisTraceEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityDEBUG.booleanisWarnEnabled()Deprecated.Checks whether theLogKitlogger will log messages of priorityWARN.voidtrace(java.lang.Object message)Deprecated.Logs a message withorg.apache.log.Priority.DEBUG.voidtrace(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.DEBUG.voidwarn(java.lang.Object message)Deprecated.Logs a message withorg.apache.log.Priority.WARN.voidwarn(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.WARN.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Deprecated.Serializable version identifier.- See Also:
- Constant Field Values
-
logger
protected transient volatile org.apache.log.Logger logger
Deprecated.Logging goes to thisLogKitlogger
-
name
protected java.lang.String name
Deprecated.Name of this logger
-
-
Method Detail
-
debug
public void debug(java.lang.Object message)
Deprecated.Logs a message withorg.apache.log.Priority.DEBUG.- Specified by:
debugin interfaceLog- Parameters:
message- to log- See Also:
Log.debug(Object)
-
debug
public void debug(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.DEBUG.- Specified by:
debugin interfaceLog- Parameters:
message- to logt- log this cause- See Also:
Log.debug(Object, Throwable)
-
error
public void error(java.lang.Object message)
Deprecated.Logs a message withorg.apache.log.Priority.ERROR.- Specified by:
errorin interfaceLog- Parameters:
message- to log- See Also:
Log.error(Object)
-
error
public void error(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.ERROR.- Specified by:
errorin interfaceLog- Parameters:
message- to logt- log this cause- See Also:
Log.error(Object, Throwable)
-
fatal
public void fatal(java.lang.Object message)
Deprecated.Logs a message withorg.apache.log.Priority.FATAL_ERROR.- Specified by:
fatalin interfaceLog- Parameters:
message- to log- See Also:
Log.fatal(Object)
-
fatal
public void fatal(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.FATAL_ERROR.- Specified by:
fatalin interfaceLog- Parameters:
message- to logt- log this cause- See Also:
Log.fatal(Object, Throwable)
-
getLogger
public org.apache.log.Logger getLogger()
Deprecated.Gets the underlying Logger we are using.- Returns:
- the underlying Logger we are using.
-
info
public void info(java.lang.Object message)
Deprecated.Logs a message withorg.apache.log.Priority.INFO.- Specified by:
infoin interfaceLog- Parameters:
message- to log- See Also:
Log.info(Object)
-
info
public void info(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.INFO.- Specified by:
infoin interfaceLog- Parameters:
message- to logt- log this cause- See Also:
Log.info(Object, Throwable)
-
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
public void trace(java.lang.Object message)
Deprecated.Logs a message withorg.apache.log.Priority.DEBUG.- Specified by:
tracein interfaceLog- Parameters:
message- to log- See Also:
Log.trace(Object)
-
trace
public void trace(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.DEBUG.- Specified by:
tracein interfaceLog- Parameters:
message- to logt- log this cause- See Also:
Log.trace(Object, Throwable)
-
warn
public void warn(java.lang.Object message)
Deprecated.Logs a message withorg.apache.log.Priority.WARN.- Specified by:
warnin interfaceLog- Parameters:
message- to log- See Also:
Log.warn(Object)
-
warn
public void warn(java.lang.Object message, java.lang.Throwable t)Deprecated.Logs a message withorg.apache.log.Priority.WARN.- Specified by:
warnin interfaceLog- Parameters:
message- to logt- log this cause- See Also:
Log.warn(Object, Throwable)
-
-