org.perf.log.logger
Class LoggerImpl

java.lang.Object
  extended by org.perf.log.logger.LoggerImpl
All Implemented Interfaces:
Logger

public class LoggerImpl
extends java.lang.Object
implements Logger


Constructor Summary
LoggerImpl()
           
LoggerImpl(java.lang.String loggerName)
           
 
Method Summary
 void debug(java.lang.String msg)
          Log a message at the DEBUG level.
 void debug(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the DEBUG level with an accompanying message.
 void error(java.lang.String msg)
          Log a message at the ERROR level.
 void error(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the ERROR level with an accompanying message.
 boolean getDebugEnabled()
          Is the logger instance enabled for the DEBUG level?
 boolean getErrorEnabled()
          Is the logger instance enabled for the ERROR level?
 boolean getInfoEnabled()
          Is the logger instance enabled for the INFO level?
 java.lang.String getLoggerName()
           
 boolean getTraceEnabled()
           
 boolean getWarnEnabled()
          Is the logger instance enabled for the WARN level?
 void info(java.lang.String msg)
          Log a message at the INFO level.
 void info(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the INFO level with an accompanying message.
 void setDebugEnabled(boolean debugEnabled)
           
 void setErrorEnabled(boolean errorEnabled)
          Is the logger instance enabled for the ERROR level?
 void setInfoEnabled(boolean infoEnabled)
          Is the logger instance enabled for the INFO level?
 void setLoggerName(java.lang.String loggerName)
           
 void setTraceEnabled(boolean traceEnabled)
           
 void setWarnEnabled(boolean warnEnabled)
          Is the logger instance enabled for the WARN level?
 void trace(java.lang.String msg)
          Log a message at the TRACE level.
 void trace(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the TRACE level with an accompanying message.
 void warn(java.lang.String msg)
          Log a message at the WARN level.
 void warn(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the WARN level with an accompanying message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerImpl

public LoggerImpl()

LoggerImpl

public LoggerImpl(java.lang.String loggerName)
Method Detail

debug

public void debug(java.lang.String msg)
Description copied from interface: Logger
Log a message at the DEBUG level.

Specified by:
debug in interface Logger
Parameters:
msg - the message string to be logged

debug

public void debug(java.lang.String msg,
                  java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the DEBUG level with an accompanying message.

Specified by:
debug in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

error

public void error(java.lang.String msg)
Description copied from interface: Logger
Log a message at the ERROR level.

Specified by:
error in interface Logger
Parameters:
msg - the message string to be logged

error

public void error(java.lang.String msg,
                  java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the ERROR level with an accompanying message.

Specified by:
error in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

info

public void info(java.lang.String msg)
Description copied from interface: Logger
Log a message at the INFO level.

Specified by:
info in interface Logger
Parameters:
msg - the message string to be logged

info

public void info(java.lang.String msg,
                 java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the INFO level with an accompanying message.

Specified by:
info in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

trace

public void trace(java.lang.String msg)
Description copied from interface: Logger
Log a message at the TRACE level.

Specified by:
trace in interface Logger

trace

public void trace(java.lang.String msg,
                  java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the TRACE level with an accompanying message.

Specified by:
trace in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

warn

public void warn(java.lang.String msg)
Description copied from interface: Logger
Log a message at the WARN level.

Specified by:
warn in interface Logger
Parameters:
msg - the message string to be logged

warn

public void warn(java.lang.String msg,
                 java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the WARN level with an accompanying message.

Specified by:
warn in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

getLoggerName

public java.lang.String getLoggerName()
Specified by:
getLoggerName in interface Logger

setLoggerName

public void setLoggerName(java.lang.String loggerName)
Specified by:
setLoggerName in interface Logger

getDebugEnabled

public boolean getDebugEnabled()
Description copied from interface: Logger
Is the logger instance enabled for the DEBUG level?

Specified by:
getDebugEnabled in interface Logger
Returns:
True if this Logger is enabled for the DEBUG level, false otherwise.

getErrorEnabled

public boolean getErrorEnabled()
Description copied from interface: Logger
Is the logger instance enabled for the ERROR level?

Specified by:
getErrorEnabled in interface Logger
Returns:
True if this Logger is enabled for the ERROR level, false otherwise.

getInfoEnabled

public boolean getInfoEnabled()
Description copied from interface: Logger
Is the logger instance enabled for the INFO level?

Specified by:
getInfoEnabled in interface Logger
Returns:
True if this Logger is enabled for the INFO level, false otherwise.

getTraceEnabled

public boolean getTraceEnabled()
Specified by:
getTraceEnabled in interface Logger

getWarnEnabled

public boolean getWarnEnabled()
Description copied from interface: Logger
Is the logger instance enabled for the WARN level?

Specified by:
getWarnEnabled in interface Logger
Returns:
True if this Logger is enabled for the WARN level, false otherwise.

setErrorEnabled

public void setErrorEnabled(boolean errorEnabled)
Description copied from interface: Logger
Is the logger instance enabled for the ERROR level?

Specified by:
setErrorEnabled in interface Logger

setInfoEnabled

public void setInfoEnabled(boolean infoEnabled)
Description copied from interface: Logger
Is the logger instance enabled for the INFO level?

Specified by:
setInfoEnabled in interface Logger

setTraceEnabled

public void setTraceEnabled(boolean traceEnabled)
Specified by:
setTraceEnabled in interface Logger

setWarnEnabled

public void setWarnEnabled(boolean warnEnabled)
Description copied from interface: Logger
Is the logger instance enabled for the WARN level?

Specified by:
setWarnEnabled in interface Logger

setDebugEnabled

public void setDebugEnabled(boolean debugEnabled)
Specified by:
setDebugEnabled in interface Logger