public final class TestLoggerFactory extends Object implements org.slf4j.ILoggerFactory
Constructor and Description |
---|
TestLoggerFactory() |
TestLoggerFactory(org.slf4j.event.Level printLevel) |
TestLoggerFactory(org.slf4j.event.Level printLevel,
org.slf4j.event.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() |
org.slf4j.event.Level |
getCaptureLevel() |
static TestLoggerFactory |
getInstance() |
TestLogger |
getLogger(Class<?> aClass) |
TestLogger |
getLogger(String name) |
static List<LoggingEvent> |
getLoggingEvents() |
List<LoggingEvent> |
getLoggingEventsFromLoggers() |
org.slf4j.event.Level |
getPrintLevel() |
static TestLogger |
getTestLogger(Class<?> aClass) |
static TestLogger |
getTestLogger(String name) |
void |
setCaptureLevel(org.slf4j.event.Level captureLevel) |
void |
setPrintLevel(org.slf4j.event.Level printLevel) |
public TestLoggerFactory()
public TestLoggerFactory(org.slf4j.event.Level printLevel)
public TestLoggerFactory(org.slf4j.event.Level printLevel, org.slf4j.event.Level captureLevel)
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 org.slf4j.event.Level getPrintLevel()
public org.slf4j.event.Level getCaptureLevel()
public Map<String,TestLogger> getAllLoggers()
public TestLogger getLogger(Class<?> aClass)
public TestLogger getLogger(String name)
getLogger
in interface org.slf4j.ILoggerFactory
public void clearLoggers()
public void clearAllLoggers()
public List<LoggingEvent> getLoggingEventsFromLoggers()
public List<LoggingEvent> getAllLoggingEventsFromLoggers()
public void setPrintLevel(org.slf4j.event.Level printLevel)
public void setCaptureLevel(org.slf4j.event.Level captureLevel)
Copyright © 2023. All rights reserved.