Annotation Interface LogLevels
@ExtendWith(LogLevelsCondition.class)
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Documented
public @interface LogLevels
Test classes annotated with this will change logging levels between tests. It can also
be applied to individual test methods. If both class-level and method-level annotations
are present, the method-level annotation is used.
- Since:
- 5.2
- Author:
- Gary Russell
-
Optional Element Summary
-
Element Details
-
classes
Class<?>[] classesClasses representing Log4j categories to change.- Returns:
- the classes.
- Default:
- {}
-
categories
String[] categoriesCategory names representing Log4j categories to change.- Returns:
- the names.
- Default:
- {}
-
level
String levelThe Log4j level name to switch the categories to during the test.- Returns:
- the level.
- Default:
- ""
-