com.smaxe.logger.support
Class ClassLogger

java.lang.Object
  extended by com.smaxe.logger.support.ClassLogger
All Implemented Interfaces:
ILogger

public final class ClassLogger
extends java.lang.Object
implements ILogger

ClassLogger - ILogger for class logs.

Author:
Andrei Sochirca

Field Summary
 
Fields inherited from interface com.smaxe.logger.ILogger
DEBUG, ERROR, INFO, LEVEL, WARN
 
Constructor Summary
ClassLogger(java.lang.String clazz, ILogger logger)
          Constructor.
 
Method Summary
 void log(int level, java.lang.String message, java.lang.Throwable t, java.lang.Object... args)
          Logs the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLogger

public ClassLogger(java.lang.String clazz,
                   ILogger logger)
Constructor.

Parameters:
clazz -
logger -
Method Detail

log

public void log(int level,
                java.lang.String message,
                java.lang.Throwable t,
                java.lang.Object... args)
Description copied from interface: ILogger
Logs the message.

Specified by:
log in interface ILogger
Parameters:
level - message level
message - message to log
t - thrown exception, null if the exception is not thrown
args - optional arguments