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