org.perf.log.app.logger
Interface Logger

All Known Implementing Classes:
AppLoggerImpl

public interface Logger

A Sample Logger interface that uses Java Util Logging levels It uses traditional methods: debug, error, info, trace and warn or equivalent finest, severe, info, fine and warning equivalent of Java Util Logging interface


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.
 void fine(java.lang.String msg)
          Log a message at the fine level.
 void fine(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the fine level with an accompanying message.
 void finest(java.lang.String msg)
          Log a message at the finest level.
 void finest(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the FINEST level with an accompanying message.
 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 setLevel(java.util.logging.Level level)
           
 void setLoggerName(java.lang.String loggerName)
           
 void severe(java.lang.String msg)
          Log a message at the SEVERE level.
 void severe(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the SEVERE level with an accompanying message.
 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.
 

Method Detail

setLoggerName

void setLoggerName(java.lang.String loggerName)

setLevel

void setLevel(java.util.logging.Level level)

trace

void trace(java.lang.String msg)
Log a message at the TRACE level.


fine

void fine(java.lang.String msg)
Log a message at the fine level. This is same as level trace


trace

void trace(java.lang.String msg,
           java.lang.Throwable t)
Log an exception (throwable) at the TRACE level with an accompanying message.

Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

fine

void fine(java.lang.String msg,
          java.lang.Throwable t)
Log an exception (throwable) at the fine level with an accompanying message. This is same as level trace

Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

debug

void debug(java.lang.String msg)
Log a message at the DEBUG level.

Parameters:
msg - the message string to be logged

finest

void finest(java.lang.String msg)
Log a message at the finest level. This is same as level DEBUG

Parameters:
msg - the message string to be logged

debug

void debug(java.lang.String msg,
           java.lang.Throwable t)
Log an exception (throwable) at the DEBUG level with an accompanying message. This is same as FINEST level

Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

finest

void finest(java.lang.String msg,
            java.lang.Throwable t)
Log an exception (throwable) at the FINEST level with an accompanying message. This is same as DEBUG level

Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

info

void info(java.lang.String msg)
Log a message at the INFO level.

Parameters:
msg - the message string to be logged

info

void info(java.lang.String msg,
          java.lang.Throwable t)
Log an exception (throwable) at the INFO level with an accompanying message.

Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

warn

void warn(java.lang.String msg)
Log a message at the WARN level.

Parameters:
msg - the message string to be logged

warn

void warn(java.lang.String msg,
          java.lang.Throwable t)
Log an exception (throwable) at the WARN level with an accompanying message.

Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

error

void error(java.lang.String msg)
Log a message at the ERROR level. This is same as SEVERE level

Parameters:
msg - the message string to be logged

severe

void severe(java.lang.String msg)
Log a message at the SEVERE level. This is same as ERROR level

Parameters:
msg - the message string to be logged

error

void error(java.lang.String msg,
           java.lang.Throwable t)
Log an exception (throwable) at the ERROR level with an accompanying message.

Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

severe

void severe(java.lang.String msg,
            java.lang.Throwable t)
Log an exception (throwable) at the SEVERE level with an accompanying message. This same as ERROR level

Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log