Class Log4J2Configurator
java.lang.Object
nl.pim16aap2.util.logging.Log4J2Configurator
Per-plugin Log4j2 configurator:
- plugin-specific RollingFile appender
- plugin-specific Console appender with [projectName] prefix
- additivity=false so nothing bubbles to root appenders
- dynamic level changes via VariableLevelFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidsetLevel(org.apache.logging.log4j.Level level) static voidsetMarkerName(String name) static org.apache.logging.log4j.LeveltoLog4jLevel(Level level) Deprecated, for removal: This API element is subject to removal in a future version.Use log4j2 levels directly.
-
Constructor Details
-
Log4J2Configurator
-
-
Method Details
-
setMarkerName
-
setLevel
public void setLevel(org.apache.logging.log4j.Level level) -
configure
-
removeLoggers
public void removeLoggers() -
toLog4jLevel
Deprecated, for removal: This API element is subject to removal in a future version.Use log4j2 levels directly.Converts aLevelto aLevel.- Parameters:
level- The level to convert.- Returns:
- The converted level.
-