Class LogKitLogger
java.lang.Object
org.apache.avalon.framework.logger.LogKitLogger
- All Implemented Interfaces:
org.apache.avalon.framework.logger.Logger
The default LogKit wrapper class for Logger.
- Version:
- $Id: LogKitLogger.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
- Author:
- Avalon Development Team
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogKitLogger(org.apache.log.Logger logImpl) Create a logger that delegates to specified logger. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidLog a debug message.final voidLog a debug message.final voidLog a error message.final voidLog a error message.final voidfatalError(String message) Log a fatalError message.final voidfatalError(String message, Throwable throwable) Log a fatalError message.final org.apache.avalon.framework.logger.LoggergetChildLogger(String name) Create a new child logger.final voidLog a info message.final voidLog a info message.final booleanDetermine if messages of priority "debug" will be logged.final booleanDetermine if messages of priority "error" will be logged.final booleanDetermine if messages of priority "fatalError" will be logged.final booleanDetermine if messages of priority "info" will be logged.final booleanDetermine if messages of priority "warn" will be logged.final voidLog a warn message.final voidLog a warn message.
-
Field Details
-
m_logger
private final org.apache.log.Logger m_logger
-
-
Constructor Details
-
LogKitLogger
public LogKitLogger(org.apache.log.Logger logImpl) Create a logger that delegates to specified logger.- Parameters:
logImpl- the LogKit logger to delegate to
-
-
Method Details
-
debug
Log a debug message.- Specified by:
debugin interfaceorg.apache.avalon.framework.logger.Logger- Parameters:
message- the message
-
debug
-
isDebugEnabled
public final boolean isDebugEnabled()Determine if messages of priority "debug" will be logged.- Specified by:
isDebugEnabledin interfaceorg.apache.avalon.framework.logger.Logger- Returns:
- true if "debug" messages will be logged
-
info
Log a info message.- Specified by:
infoin interfaceorg.apache.avalon.framework.logger.Logger- Parameters:
message- the message
-
info
-
isInfoEnabled
public final boolean isInfoEnabled()Determine if messages of priority "info" will be logged.- Specified by:
isInfoEnabledin interfaceorg.apache.avalon.framework.logger.Logger- Returns:
- true if "info" messages will be logged
-
warn
Log a warn message.- Specified by:
warnin interfaceorg.apache.avalon.framework.logger.Logger- Parameters:
message- the message
-
warn
-
isWarnEnabled
public final boolean isWarnEnabled()Determine if messages of priority "warn" will be logged.- Specified by:
isWarnEnabledin interfaceorg.apache.avalon.framework.logger.Logger- Returns:
- true if "warn" messages will be logged
-
error
Log a error message.- Specified by:
errorin interfaceorg.apache.avalon.framework.logger.Logger- Parameters:
message- the message
-
error
-
isErrorEnabled
public final boolean isErrorEnabled()Determine if messages of priority "error" will be logged.- Specified by:
isErrorEnabledin interfaceorg.apache.avalon.framework.logger.Logger- Returns:
- true if "error" messages will be logged
-
fatalError
Log a fatalError message.- Specified by:
fatalErrorin interfaceorg.apache.avalon.framework.logger.Logger- Parameters:
message- the message
-
fatalError
-
isFatalErrorEnabled
public final boolean isFatalErrorEnabled()Determine if messages of priority "fatalError" will be logged.- Specified by:
isFatalErrorEnabledin interfaceorg.apache.avalon.framework.logger.Logger- Returns:
- true if "fatalError" messages will be logged
-
getChildLogger
Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name] ThrowsIllegalArgumentExceptionif name has an empty element name- Specified by:
getChildLoggerin interfaceorg.apache.avalon.framework.logger.Logger- Parameters:
name- the subname of this logger- Returns:
- the new logger
-