Package com.github.robtimus.junit.support.extension.testlogger
Provides interfaces and classes for the
TestLogger
extension.-
Class Summary Class Description JdkLoggerContext JdkLoggerContext
represents a JDKLogger
.Log4jLoggerContext Log4jLoggerContext
represents a Log4jLogger
(2.x only).Log4jNullAppender An appender that ignores events.Log4jNullAppender.Builder A builder forLog4jNullAppender
instances.LogbackLoggerContext LogbackLoggerContext
represents a logbackLogger
.LogCaptor<T> An object that captures logged events or records.Reload4jLoggerContext Reload4jLoggerContext
represents a reload4jLogger
. -
Annotation Types Summary Annotation Type Description TestLogger TestLogger
can be used to annotate a field or a parameter in a lifecycle method or test method that should be resolved into a logging context.TestLogger.ForClass TestLogger.ForClass
can be used instead ofTestLogger
to provide the logger name as a class.TestLogger.Root TestLogger.Root
can be used instead ofTestLogger
to inject a logging context for the root logger.