Class Log4j2Configuration
java.lang.Object
org.apache.maven.cli.logging.BaseSlf4jConfiguration
org.apache.maven.cli.logging.impl.Log4j2Configuration
- All Implemented Interfaces:
Slf4jConfiguration
Configuration for slf4j-log4j2.
- Since:
- 3.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.cli.logging.Slf4jConfiguration
Slf4jConfiguration.Level
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activate logging implementation configuration (if necessary).void
Set root logging level.
-
Constructor Details
-
Log4j2Configuration
public Log4j2Configuration()
-
-
Method Details
-
setRootLoggerLevel
Description copied from interface:Slf4jConfiguration
Set root logging level.- Specified by:
setRootLoggerLevel
in interfaceSlf4jConfiguration
- Overrides:
setRootLoggerLevel
in classBaseSlf4jConfiguration
- Parameters:
level
- the level
-
activate
public void activate()Description copied from interface:Slf4jConfiguration
Activate logging implementation configuration (if necessary).- Specified by:
activate
in interfaceSlf4jConfiguration
- Overrides:
activate
in classBaseSlf4jConfiguration
-