org.apache.logging.log4j.jul
Interface LevelConverter

All Known Implementing Classes:
DefaultLevelConverter

public interface LevelConverter

Strategy interface to convert between custom Log4j Levels and JUL Levels.

Since:
2.1
See Also:
Constants.LEVEL_CONVERTER_PROPERTY

Method Summary
 Level toJavaLevel(org.apache.logging.log4j.Level level)
          Converts a Log4j logging Level to a JDK logging Level.
 org.apache.logging.log4j.Level toLevel(Level javaLevel)
          Converts a JDK logging Level to a Log4j logging Level.
 

Method Detail

toLevel

org.apache.logging.log4j.Level toLevel(Level javaLevel)
Converts a JDK logging Level to a Log4j logging Level.

Parameters:
javaLevel - JDK Level to convert.
Returns:
converted Level or null if the given level could not be converted.

toJavaLevel

Level toJavaLevel(org.apache.logging.log4j.Level level)
Converts a Log4j logging Level to a JDK logging Level.

Parameters:
level - Log4j Level to convert.
Returns:
converted Level or null if the given level could not be converted.


Copyright © 1999-2015 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.