Class Log4JLogger
java.lang.Object
org.apache.avalon.framework.logger.Log4JLogger
- All Implemented Interfaces:
Logger
The default Log4J wrapper class for Logger.
- Version:
- CVS $Revision: 1.19 $ $Date: 2004/02/11 14:34:26 $
- Author:
- Avalon Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionLog4JLogger(org.apache.log4j.Logger logImpl) Create a logger that delegates to specified category. -
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 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.
-
Constructor Details
-
Log4JLogger
public Log4JLogger(org.apache.log4j.Logger logImpl) Create a logger that delegates to specified category.- Parameters:
logImpl- the category to delegate to
-
-
Method Details
-
debug
Log a debug message. -
debug
Log a debug message. -
isDebugEnabled
public final boolean isDebugEnabled()Determine if messages of priority "debug" will be logged.- Specified by:
isDebugEnabledin interfaceLogger- Returns:
- true if "debug" messages will be logged
-
info
Log a info message. -
info
Log a info message. -
isInfoEnabled
public final boolean isInfoEnabled()Determine if messages of priority "info" will be logged.- Specified by:
isInfoEnabledin interfaceLogger- Returns:
- true if "info" messages will be logged
-
warn
Log a warn message. -
warn
Log a warn message. -
isWarnEnabled
public final boolean isWarnEnabled()Determine if messages of priority "warn" will be logged.- Specified by:
isWarnEnabledin interfaceLogger- Returns:
- true if "warn" messages will be logged
-
error
Log a error message. -
error
Log a error message. -
isErrorEnabled
public final boolean isErrorEnabled()Determine if messages of priority "error" will be logged.- Specified by:
isErrorEnabledin interfaceLogger- Returns:
- true if "error" messages will be logged
-
fatalError
Log a fatalError message.- Specified by:
fatalErrorin interfaceLogger- Parameters:
message- the message
-
fatalError
Log a fatalError message.- Specified by:
fatalErrorin interfaceLogger- Parameters:
message- the messagethrowable- the throwable
-
isFatalErrorEnabled
public final boolean isFatalErrorEnabled()Determine if messages of priority "fatalError" will be logged.- Specified by:
isFatalErrorEnabledin interfaceLogger- 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 interfaceLogger- Parameters:
name- the subname of this logger- Returns:
- the new logger
-