PatternSelector
@Plugin(name="ScriptPatternSelector", category="Core", elementType="patternSelector", printObject=true) public class ScriptPatternSelector extends Object implements PatternSelector
Modifier and Type | Class | Description |
---|---|---|
static class |
ScriptPatternSelector.Builder |
Custom ScriptPatternSelector builder.
|
ELEMENT_TYPE
Constructor | 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 | 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.
|
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 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-2018. 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.