@Plugin(name="ScriptPatternSelector", category="Core", elementType="patternSelector", printObject=true) public class ScriptPatternSelector extends Object implements PatternSelector
ELEMENT_TYPE
Constructor and Description |
---|
ScriptPatternSelector(AbstractScript script,
PatternMatch[] properties,
String defaultPattern,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
Configuration config) |
Modifier and Type | Method and Description |
---|---|
static ScriptPatternSelector |
createSelector(AbstractScript script,
PatternMatch[] properties,
String defaultPattern,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
Configuration config) |
PatternFormatter[] |
getFormatters(LogEvent event) |
String |
toString() |
public ScriptPatternSelector(AbstractScript script, PatternMatch[] properties, String defaultPattern, boolean alwaysWriteExceptions, boolean noConsoleNoAnsi, Configuration config)
public PatternFormatter[] getFormatters(LogEvent event)
getFormatters
in interface PatternSelector
@PluginFactory public static ScriptPatternSelector createSelector(@PluginElement(value="Script") AbstractScript script, @PluginElement(value="PatternMatch") PatternMatch[] properties, @PluginAttribute(value="defaultPattern") String defaultPattern, @PluginAttribute(value="alwaysWriteExceptions",defaultBoolean=true) boolean alwaysWriteExceptions, @PluginAttribute(value="noConsoleNoAnsi",defaultBoolean=false) boolean noConsoleNoAnsi, @PluginConfiguration Configuration config)
Copyright © 1999-2017 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.