org.apache.log.util

Class LogKitAvalonLogger

Implemented Interfaces:
Logger

public final class LogKitAvalonLogger
extends java.lang.Object
implements Logger

The default LogKit wrapper class for Logger.

Version:
CVS $Revision: 1.1 $ $Date: 2003/04/16 23:03:52 $

Authors:
Peter Donald
Berin Loritsch

Constructor Summary

LogKitAvalonLogger(Logger logger)
Create a logger that delegates to specified logger.

Method Summary

void
debug(String message)
Log a debug message.
void
debug(String message, Throwable throwable)
Log a debug message.
void
error(String message)
Log a error message.
void
error(String message, Throwable throwable)
Log a error message.
void
fatalError(String message)
Log a fatalError message.
void
fatalError(String message, Throwable throwable)
Log a fatalError message.
Logger
getChildLogger(String name)
Create a new child logger.
void
info(String message)
Log a info message.
void
info(String message, Throwable throwable)
Log a info message.
boolean
isDebugEnabled()
Determine if messages of priority "debug" will be logged.
boolean
isErrorEnabled()
Determine if messages of priority "error" will be logged.
boolean
isFatalErrorEnabled()
Determine if messages of priority "fatalError" will be logged.
boolean
isInfoEnabled()
Determine if messages of priority "info" will be logged.
boolean
isWarnEnabled()
Determine if messages of priority "warn" will be logged.
void
warn(String message)
Log a warn message.
void
warn(String message, Throwable throwable)
Log a warn message.

Constructor Details

LogKitAvalonLogger

public LogKitAvalonLogger(Logger logger)
Create a logger that delegates to specified logger.

Parameters:
logger - the LogKit logger to delegate to

Method Details

debug

public final void debug(String message)
Log a debug message.

Parameters:
message - the message


debug

public final void debug(String message,
                        Throwable throwable)
Log a debug message.

Parameters:
message - the message
throwable - the throwable


error

public final void error(String message)
Log a error message.

Parameters:
message - the message


error

public final void error(String message,
                        Throwable throwable)
Log a error message.

Parameters:
message - the message
throwable - the throwable


fatalError

public final void fatalError(String message)
Log a fatalError message.

Parameters:
message - the message


fatalError

public final void fatalError(String message,
                             Throwable throwable)
Log a fatalError message.

Parameters:
message - the message
throwable - the throwable


getChildLogger

public final Logger getChildLogger(String name)
Create a new child logger. The name of the child logger is [current-loggers-name].[passed-in-name] Throws IllegalArgumentException if name has an empty element name

Parameters:
name - the subname of this logger

Returns:
the new logger


info

public final void info(String message)
Log a info message.

Parameters:
message - the message


info

public final void info(String message,
                       Throwable throwable)
Log a info message.

Parameters:
message - the message
throwable - the throwable


isDebugEnabled

public final boolean isDebugEnabled()
Determine if messages of priority "debug" will be logged.

Returns:
true if "debug" messages will be logged


isErrorEnabled

public final boolean isErrorEnabled()
Determine if messages of priority "error" will be logged.

Returns:
true if "error" messages will be logged


isFatalErrorEnabled

public final boolean isFatalErrorEnabled()
Determine if messages of priority "fatalError" will be logged.

Returns:
true if "fatalError" messages will be logged


isInfoEnabled

public final boolean isInfoEnabled()
Determine if messages of priority "info" will be logged.

Returns:
true if "info" messages will be logged


isWarnEnabled

public final boolean isWarnEnabled()
Determine if messages of priority "warn" will be logged.

Returns:
true if "warn" messages will be logged


warn

public final void warn(String message)
Log a warn message.

Parameters:
message - the message


warn

public final void warn(String message,
                       Throwable throwable)
Log a warn message.

Parameters:
message - the message
throwable - the throwable