Package org.apache.logging.log4j.jul
Class LevelTranslator
- java.lang.Object
-
- org.apache.logging.log4j.jul.LevelTranslator
-
public final class LevelTranslator extends Object
Utility class to convert between JDK Levels and Log4j 2 Levels.- Since:
- 2.1
-
-
Field Summary
Fields Modifier and Type Field Description static Level
CONFIG
Custom Log4j level corresponding to theLevel.CONFIG
logging level.static Level
FINEST
Custom Log4j level corresponding to theLevel.FINEST
logging level.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Level
toJavaLevel(Level level)
Converts a Log4j logging Level to a JDK logging Level.static Level
toLevel(Level level)
Converts a JDK logging Level to a Log4j logging Level.
-
-
-
Field Detail
-
FINEST
public static final Level FINEST
Custom Log4j level corresponding to theLevel.FINEST
logging level. This maps to a level more specific thanLevel.TRACE
.
-
CONFIG
public static final Level CONFIG
Custom Log4j level corresponding to theLevel.CONFIG
logging level. This maps to a level in betweenLevel.INFO
andLevel.DEBUG
.
-
-