com.googlecode.kevinarpe.papaya.logging.slf4j
Interface ISLF4JLevelLoggerUtils

All Known Implementing Classes:
SLF4JLevelLoggerUtils

public interface ISLF4JLevelLoggerUtils

For those projects that require full, static-free mocking capabilities, use this interface. Else, the concrete implementation SLF4JLevelLoggerUtils will suffice.

Author:
Kevin Connor ARPE (kevinarpe@gmail.com)

Method Summary
 SLF4JLevelLogger newInstance(org.slf4j.ILoggerFactory loggerFactory, SLF4JLogLevel logLevel, Class<?> clazz)
          Creates a new logger than logs all messages at a single level.
 SLF4JLevelLogger newInstance(SLF4JLogLevel logLevel, Class<?> clazz)
          This is a convenience method to call newInstance(ILoggerFactory, SLF4JLogLevel, Class) with the default global SLF4J ILoggerFactory.
 

Method Detail

newInstance

SLF4JLevelLogger newInstance(SLF4JLogLevel logLevel,
                             Class<?> clazz)
This is a convenience method to call newInstance(ILoggerFactory, SLF4JLogLevel, Class) with the default global SLF4J ILoggerFactory.


newInstance

SLF4JLevelLogger newInstance(org.slf4j.ILoggerFactory loggerFactory,
                             SLF4JLogLevel logLevel,
                             Class<?> clazz)
Creates a new logger than logs all messages at a single level.

Parameters:
loggerFactory - usually LoggerFactory.getILoggerFactory(), but in rare cases may be different
logLevel - the single level at which the new logging shall log, e.g., SLF4JLogLevel.INFO
clazz - used to set the name of the new logger via Class.getName()
Returns:
new instance that implements inteface SLF4JLevelLogger
Throws:
NullPointerException - if any argument is null


Copyright © 2013-2014. All Rights Reserved.