@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @ExtendWith(value=TestLoggerExtension.class) public static @interface TestLoggerExtension.Capture
TestLoggerExtension
, unless @TestLoggerExtension.Redirect
annotation is also present.
By default loggers will route the log messages to both the original logger and the injected
TestLogger
, and in the latter there won't be automatic inclusion of thread names.