1 package com.github.valfirst.slf4jtest;
2
3 import static java.lang.annotation.RetentionPolicy.RUNTIME;
4
5 import java.lang.annotation.Inherited;
6 import java.lang.annotation.Retention;
7 import org.junit.jupiter.api.extension.ExtendWith;
8
9 /**
10 * Annotation that can configure TestLoggerFactory as invoked by the {@link
11 * TestLoggerFactoryExtension}.
12 */
13 @ExtendWith(TestLoggerFactoryExtension.class)
14 @Inherited
15 @Retention(RUNTIME)
16 public @interface TestLoggerFactorySettings {
17
18 /**
19 * Configure when {@link TestLoggerFactory} is cleaned up
20 *
21 * @return The cleanup stage to configure, by default {@link CleanupStage#BEFORE_TEST_EXECUTION}
22 */
23 CleanupStage cleanupStage() default CleanupStage.BEFORE_TEST_EXECUTION;
24 }