Class LevelPatternSelector

java.lang.Object
org.apache.logging.log4j.core.layout.LevelPatternSelector
All Implemented Interfaces:
LocationAware, PatternSelector

@Plugin(name="LevelPatternSelector", category="Core", elementType="patternSelector", printObject=true) public class LevelPatternSelector extends Object implements PatternSelector, LocationAware
Selects the pattern to use based on the Level in the LogEvent.
  • Constructor Details

    • LevelPatternSelector

      @Deprecated public LevelPatternSelector(PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration config)
      Deprecated.
      Use newBuilder() instead. This will be private in a future version.
  • Method Details