LoggingEvents logged by this thread and resets the enabled levels of the
logger to all levels for this thread.LoggingEvents logged on this logger, regardless of thread, and resets the
enabled levels of the logger to all levels for ALL threads.LoggingEvent from an SLF4J LoggingEvent.LoggingEvent with an MDC from an SLF4J LoggingEvent.LoggingEvents logged on this logger by ANY thread.LoggingEvents logged on this logger by this thread.LoggingEvent.getMarkers().TestMDCAdapter.getCopyOfContextMap() returns null when no values have been set.LevelAssert from a provided test logger.Throwable.LoggingEvent has been logged by the test logger.LoggingEvent satisfying the provided predicate has been logged by the
test logger.TestLoggerAssert.PredicateBuilder to construct the predicate with which to Verify that
a matching LoggingEvent has been logged by the test logger.Throwable.LoggingEvent has not been logged by the test logger.LoggingEvent satisfying the provided predicate has _not_ been logged by
the test logger.TestLoggerAssert.PredicateBuilder to construct the predicate with which to Verify that
a matching LoggingEvent has _not_ been logged by the test logger.java.util.logging to SLF4J.JulConfig.setup().TestLogger, for a
specific log level.TestLoggingEventBuilder.Thread.Threads.TestMDCAdapter.getCopyOfContextMap() returns null when no values have been set.java.util.logging to SLF4J.Logger which stores LoggingEvents in memory and provides
methods to access and remove them in order to facilitate writing tests that assert particular
logging calls were made.TestLogger.TestLoggerFactoryExtension.LoggingEventBuilder which changes the following compared to DefaultLoggingEventBuilder:
The TestLoggingEventBuilder.toLoggingEvent() method is added to build the event without logging it.KeyValuePair with overridden Object.equals(java.lang.Object) and Object.hashCode() methods.ClassLoader leaks associated with it and does not permit
null.TestLoggerAssert.PredicateBuilder.withMarkers(org.slf4j.Marker...)
instead.Copyright © 2025. All rights reserved.