com.oroad.stxx.util
Class AvalonLogger

java.lang.Object
  extended bycom.oroad.stxx.util.AvalonLogger
All Implemented Interfaces:
org.apache.avalon.framework.logger.Logger

public class AvalonLogger
extends java.lang.Object
implements org.apache.avalon.framework.logger.Logger

Wraps commons-logging as an Avalon Logger for cases that don't support commons-logging (ie FOP).

Author:
Don Brown

Constructor Summary
AvalonLogger(org.apache.commons.logging.Log log)
          Constructor for the AvalonLogger object
 
Method Summary
 void debug(java.lang.String msg)
          Debug this message
 void debug(java.lang.String msg, java.lang.Throwable t)
          Debug message
 void error(java.lang.String msg)
          Error message
 void error(java.lang.String msg, java.lang.Throwable t)
          Error message
 void fatalError(java.lang.String msg)
          Fatal message
 void fatalError(java.lang.String msg, java.lang.Throwable t)
          Fatal message
 org.apache.avalon.framework.logger.Logger getChildLogger(java.lang.String name)
          Gets the childLogger attribute
 void info(java.lang.String msg)
          Info message
 void info(java.lang.String msg, java.lang.Throwable t)
          Info message
 boolean isDebugEnabled()
          Gets the debugEnabled attribute
 boolean isErrorEnabled()
          Gets the errorEnabled attribute
 boolean isFatalErrorEnabled()
          Gets the fatalErrorEnabled attribute
 boolean isInfoEnabled()
          Gets the infoEnabled attribute
 boolean isWarnEnabled()
          Gets the warnEnabled attribute
 void warn(java.lang.String msg)
          Warn message
 void warn(java.lang.String msg, java.lang.Throwable t)
          Warn message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvalonLogger

public AvalonLogger(org.apache.commons.logging.Log log)
Constructor for the AvalonLogger object

Parameters:
log - The log to wrap
Method Detail

debug

public void debug(java.lang.String msg)
Debug this message

Specified by:
debug in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message

debug

public void debug(java.lang.String msg,
                  java.lang.Throwable t)
Debug message

Specified by:
debug in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message
t - The throwable

error

public void error(java.lang.String msg)
Error message

Specified by:
error in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message

error

public void error(java.lang.String msg,
                  java.lang.Throwable t)
Error message

Specified by:
error in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message
t - The throwable

fatalError

public void fatalError(java.lang.String msg)
Fatal message

Specified by:
fatalError in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message

fatalError

public void fatalError(java.lang.String msg,
                       java.lang.Throwable t)
Fatal message

Specified by:
fatalError in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message
t - The throwable

info

public void info(java.lang.String msg)
Info message

Specified by:
info in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message

info

public void info(java.lang.String msg,
                 java.lang.Throwable t)
Info message

Specified by:
info in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message
t - The throwable

warn

public void warn(java.lang.String msg)
Warn message

Specified by:
warn in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message

warn

public void warn(java.lang.String msg,
                 java.lang.Throwable t)
Warn message

Specified by:
warn in interface org.apache.avalon.framework.logger.Logger
Parameters:
msg - The message
t - The throwable

getChildLogger

public org.apache.avalon.framework.logger.Logger getChildLogger(java.lang.String name)
Gets the childLogger attribute

Specified by:
getChildLogger in interface org.apache.avalon.framework.logger.Logger
Parameters:
name - The name of the logger
Returns:
The childLogger value

isDebugEnabled

public boolean isDebugEnabled()
Gets the debugEnabled attribute

Specified by:
isDebugEnabled in interface org.apache.avalon.framework.logger.Logger
Returns:
The debugEnabled value

isErrorEnabled

public boolean isErrorEnabled()
Gets the errorEnabled attribute

Specified by:
isErrorEnabled in interface org.apache.avalon.framework.logger.Logger
Returns:
The errorEnabled value

isFatalErrorEnabled

public boolean isFatalErrorEnabled()
Gets the fatalErrorEnabled attribute

Specified by:
isFatalErrorEnabled in interface org.apache.avalon.framework.logger.Logger
Returns:
The fatalErrorEnabled value

isInfoEnabled

public boolean isInfoEnabled()
Gets the infoEnabled attribute

Specified by:
isInfoEnabled in interface org.apache.avalon.framework.logger.Logger
Returns:
The infoEnabled value

isWarnEnabled

public boolean isWarnEnabled()
Gets the warnEnabled attribute

Specified by:
isWarnEnabled in interface org.apache.avalon.framework.logger.Logger
Returns:
The warnEnabled value