public final class TestLoggerFactory extends Object implements ILoggerFactory
| Constructor and Description |
|---|
TestLoggerFactory() |
TestLoggerFactory(Level printLevel) |
TestLoggerFactory(Level printLevel,
Level captureLevel) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear() |
static void |
clearAll() |
void |
clearAllLoggers() |
void |
clearLoggers() |
Map<String,TestLogger> |
getAllLoggers() |
static List<LoggingEvent> |
getAllLoggingEvents() |
List<LoggingEvent> |
getAllLoggingEventsFromLoggers() |
static Map<String,TestLogger> |
getAllTestLoggers() |
Level |
getCaptureLevel() |
static TestLoggerFactory |
getInstance() |
TestLogger |
getLogger(Class<?> aClass) |
TestLogger |
getLogger(String name) |
static List<LoggingEvent> |
getLoggingEvents() |
List<LoggingEvent> |
getLoggingEventsFromLoggers() |
Level |
getPrintLevel() |
static TestLogger |
getTestLogger(Class<?> aClass) |
static TestLogger |
getTestLogger(String name) |
void |
setCaptureLevel(Level captureLevel) |
void |
setPrintLevel(Level printLevel) |
public TestLoggerFactory()
public TestLoggerFactory(Level printLevel)
public static TestLoggerFactory getInstance()
public static TestLogger getTestLogger(Class<?> aClass)
public static TestLogger getTestLogger(String name)
public static Map<String,TestLogger> getAllTestLoggers()
public static void clear()
public static void clearAll()
public static List<LoggingEvent> getLoggingEvents()
public static List<LoggingEvent> getAllLoggingEvents()
public Level getPrintLevel()
public Level getCaptureLevel()
public Map<String,TestLogger> getAllLoggers()
public TestLogger getLogger(Class<?> aClass)
public TestLogger getLogger(String name)
getLogger in interface ILoggerFactorypublic void clearLoggers()
public void clearAllLoggers()
public List<LoggingEvent> getLoggingEventsFromLoggers()
public List<LoggingEvent> getAllLoggingEventsFromLoggers()
public void setPrintLevel(Level printLevel)
public void setCaptureLevel(Level captureLevel)
Copyright © 2023. All rights reserved.