Package | Description |
---|---|
org.apache.logging.log4j.core.appender |
Log4j 2 Appenders.
|
org.apache.logging.log4j.core.appender.rolling.action |
Support classes for the Rolling File Appender.
|
org.apache.logging.log4j.core.appender.routing |
Apache Flume Appender.
|
org.apache.logging.log4j.core.config |
Configuration of Log4j 2.
|
org.apache.logging.log4j.core.filter |
Log4j 2 Filter support.
|
org.apache.logging.log4j.core.layout |
Log4j 2 Layout support.
|
org.apache.logging.log4j.core.script |
Log4j 2 Script support.
|
Modifier and Type | Field and Description |
---|---|
private AbstractScript |
ScriptAppenderSelector.Builder.script |
Modifier and Type | Method and Description |
---|---|
AbstractScript |
ScriptAppenderSelector.Builder.getScript() |
Modifier and Type | Method and Description |
---|---|
ScriptAppenderSelector.Builder |
ScriptAppenderSelector.Builder.withScript(AbstractScript script) |
Modifier and Type | Field and Description |
---|---|
private AbstractScript |
ScriptCondition.script |
Modifier and Type | Method and Description |
---|---|
static ScriptCondition |
ScriptCondition.createCondition(AbstractScript script,
Configuration configuration)
Creates the ScriptCondition.
|
Constructor and Description |
---|
ScriptCondition(AbstractScript script,
Configuration configuration)
Constructs a new ScriptCondition.
|
Modifier and Type | Field and Description |
---|---|
private AbstractScript |
RoutingAppender.defaultRouteScript |
private AbstractScript |
RoutingAppender.Builder.defaultRouteScript |
private AbstractScript |
Routes.patternScript |
private AbstractScript |
Routes.Builder.patternScript |
Modifier and Type | Method and Description |
---|---|
AbstractScript |
RoutingAppender.getDefaultRouteScript() |
AbstractScript |
RoutingAppender.Builder.getDefaultRouteScript() |
AbstractScript |
Routes.getPatternScript()
Gets the optional script that decides which route to pick.
|
AbstractScript |
Routes.Builder.getPatternScript() |
Modifier and Type | Method and Description |
---|---|
B |
RoutingAppender.Builder.withDefaultRouteScript(AbstractScript defaultRouteScript) |
Routes.Builder |
Routes.Builder.withPatternScript(AbstractScript patternScript) |
Constructor and Description |
---|
Routes(Configuration configuration,
AbstractScript patternScript,
java.lang.String pattern,
Route... routes) |
RoutingAppender(java.lang.String name,
Filter filter,
boolean ignoreExceptions,
Routes routes,
RewritePolicy rewritePolicy,
Configuration configuration,
PurgePolicy purgePolicy,
AbstractScript defaultRouteScript,
Property[] properties) |
Modifier and Type | Method and Description |
---|---|
static AbstractScript[] |
ScriptsPlugin.createScripts(AbstractScript[] scripts)
Return the array of scripts
|
Modifier and Type | Method and Description |
---|---|
static AbstractScript[] |
ScriptsPlugin.createScripts(AbstractScript[] scripts)
Return the array of scripts
|
Modifier and Type | Field and Description |
---|---|
private AbstractScript |
ScriptFilter.script |
Modifier and Type | Method and Description |
---|---|
static ScriptFilter |
ScriptFilter.createFilter(AbstractScript script,
Filter.Result match,
Filter.Result mismatch,
Configuration configuration)
Creates the ScriptFilter.
|
Constructor and Description |
---|
ScriptFilter(AbstractScript script,
Configuration configuration,
Filter.Result onMatch,
Filter.Result onMismatch) |
Modifier and Type | Field and Description |
---|---|
private AbstractScript |
ScriptPatternSelector.script |
private AbstractScript |
ScriptPatternSelector.Builder.script |
Modifier and Type | Method and Description |
---|---|
static ScriptPatternSelector |
ScriptPatternSelector.createSelector(AbstractScript script,
PatternMatch[] properties,
java.lang.String defaultPattern,
boolean alwaysWriteExceptions,
boolean noConsoleNoAnsi,
Configuration configuration)
Deprecated.
Use
ScriptPatternSelector.newBuilder() instead. |
ScriptPatternSelector.Builder |
ScriptPatternSelector.Builder.setScript(AbstractScript script) |
Constructor and Description |
---|
ScriptPatternSelector(AbstractScript script,
PatternMatch[] properties,
java.lang.String defaultPattern,
boolean alwaysWriteExceptions,
boolean disableAnsi,
boolean noConsoleNoAnsi,
Configuration config)
Deprecated.
Use
ScriptPatternSelector.newBuilder() instead. This will be private in a future version. |
Modifier and Type | Class and Description |
---|---|
class |
Script
Container for the language and body of a script.
|
class |
ScriptFile
Container for the language and body of a script file along with the file location.
|
class |
ScriptRef
Contains a reference to a script defined elsewhere in the configuration.
|
Modifier and Type | Field and Description |
---|---|
private AbstractScript |
ScriptManager.MainScriptRunner.script |
private AbstractScript |
ScriptManager.ThreadLocalScriptRunner.script |
Modifier and Type | Method and Description |
---|---|
AbstractScript |
ScriptManager.ScriptRunner.getScript() |
AbstractScript |
ScriptManager.MainScriptRunner.getScript() |
AbstractScript |
ScriptManager.ThreadLocalScriptRunner.getScript() |
AbstractScript |
ScriptManager.getScript(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
ScriptManager.addScript(AbstractScript script) |
javax.script.Bindings |
ScriptManager.createBindings(AbstractScript script) |
private ScriptManager.ScriptRunner |
ScriptManager.getScriptRunner(AbstractScript script) |
Constructor and Description |
---|
MainScriptRunner(javax.script.ScriptEngine scriptEngine,
AbstractScript script) |
ThreadLocalScriptRunner(AbstractScript script) |