com.smaxe.logger.support
Class Loggers

java.lang.Object
  extended by com.smaxe.logger.support.Loggers

public final class Loggers
extends java.lang.Object

Loggers - ILogger factory.

Author:
Andrei Sochirca

Method Summary
static ILogger createLogger(int level, java.lang.String clazz, ILogger logger)
          Creates logger to the logger.
static ILogger createNullLogger()
          Creates 'Null' logger, i.e. logger which ignores all log messages.
static ILogger createSoLogger(int level, java.lang.String clazz)
          Creates logger to the System.out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createNullLogger

public static ILogger createNullLogger()
Creates 'Null' logger, i.e. logger which ignores all log messages.

Returns:
ILogger instance

createSoLogger

public static ILogger createSoLogger(int level,
                                     java.lang.String clazz)
Creates logger to the System.out.

Parameters:
level - filter level
clazz -
Returns:
ILogger instance

createLogger

public static ILogger createLogger(int level,
                                   java.lang.String clazz,
                                   ILogger logger)
Creates logger to the logger.

Parameters:
level - filter level
clazz -
logger -
Returns:
ILogger instance