Package com.github.valfirst.slf4jtest
Class TestLoggerFactory
- java.lang.Object
-
- com.github.valfirst.slf4jtest.TestLoggerFactory
-
- All Implemented Interfaces:
ILoggerFactory
public final class TestLoggerFactory extends Object implements ILoggerFactory
-
-
Constructor Summary
Constructors Constructor Description TestLoggerFactory()TestLoggerFactory(Level printLevel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclear()static voidclearAll()voidclearAllLoggers()voidclearLoggers()com.google.common.collect.ImmutableMap<String,TestLogger>getAllLoggers()static List<LoggingEvent>getAllLoggingEvents()List<LoggingEvent>getAllLoggingEventsFromLoggers()static Map<String,TestLogger>getAllTestLoggers()static TestLoggerFactorygetInstance()TestLoggergetLogger(Class<?> aClass)TestLoggergetLogger(String name)static List<LoggingEvent>getLoggingEvents()com.google.common.collect.ImmutableList<LoggingEvent>getLoggingEventsFromLoggers()LevelgetPrintLevel()static TestLoggergetTestLogger(Class<?> aClass)static TestLoggergetTestLogger(String name)voidsetPrintLevel(Level printLevel)
-
-
-
Constructor Detail
-
TestLoggerFactory
public TestLoggerFactory()
-
TestLoggerFactory
public TestLoggerFactory(Level printLevel)
-
-
Method Detail
-
getInstance
public static TestLoggerFactory getInstance()
-
getTestLogger
public static TestLogger getTestLogger(Class<?> aClass)
-
getTestLogger
public static TestLogger getTestLogger(String name)
-
getAllTestLoggers
public static Map<String,TestLogger> getAllTestLoggers()
-
clear
public static void clear()
-
clearAll
public static void clearAll()
-
getLoggingEvents
public static List<LoggingEvent> getLoggingEvents()
-
getAllLoggingEvents
public static List<LoggingEvent> getAllLoggingEvents()
-
getPrintLevel
public Level getPrintLevel()
-
getAllLoggers
public com.google.common.collect.ImmutableMap<String,TestLogger> getAllLoggers()
-
getLogger
public TestLogger getLogger(Class<?> aClass)
-
getLogger
public TestLogger getLogger(String name)
- Specified by:
getLoggerin interfaceILoggerFactory
-
clearLoggers
public void clearLoggers()
-
clearAllLoggers
public void clearAllLoggers()
-
getLoggingEventsFromLoggers
public com.google.common.collect.ImmutableList<LoggingEvent> getLoggingEventsFromLoggers()
-
getAllLoggingEventsFromLoggers
public List<LoggingEvent> getAllLoggingEventsFromLoggers()
-
setPrintLevel
public void setPrintLevel(Level printLevel)
-
-