@Plugin(name="LevelPatternSelector", category="Core", elementType="patternSelector", printObject=true) public class LevelPatternSelector extends Object implements PatternSelector, LocationAware
Modifier and Type | Class and Description |
---|---|
static class |
LevelPatternSelector.Builder
Custom MarkerPatternSelector builder.
|
ELEMENT_TYPE
Constructor and Description |
---|
LevelPatternSelector(PatternMatch[] properties,
String defaultPattern,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
Configuration config)
Deprecated.
Use
newBuilder() instead. This will be private in a future version. |
Modifier and Type | Method and Description |
---|---|
static LevelPatternSelector |
createSelector(PatternMatch[] properties,
String defaultPattern,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
Configuration configuration)
Deprecated.
Use
newBuilder() instead. |
PatternFormatter[] |
getFormatters(LogEvent event) |
static LevelPatternSelector.Builder |
newBuilder()
Creates a builder for a custom ScriptPatternSelector.
|
boolean |
requiresLocation() |
String |
toString() |
@Deprecated public LevelPatternSelector(PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration config)
newBuilder()
instead. This will be private in a future version.public boolean requiresLocation()
requiresLocation
in interface LocationAware
public PatternFormatter[] getFormatters(LogEvent event)
getFormatters
in interface PatternSelector
@PluginBuilderFactory public static LevelPatternSelector.Builder newBuilder()
@Deprecated public static LevelPatternSelector createSelector(PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration configuration)
newBuilder()
instead.newBuilder()
instead.properties
- defaultPattern
- alwaysWriteExceptions
- noConsoleNoAnsi
- configuration
- Copyright © 1999-2023 The 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.