Modifier and Type | Class and Description |
---|---|
static class |
Routes.Builder |
Modifier and Type | Method and Description |
---|---|
static Routes |
createRoutes(String pattern,
Route... routes)
Deprecated.
since 2.7; use
newBuilder() . |
String |
getPattern(LogEvent event,
ConcurrentMap<Object,Object> scriptStaticVariables)
Returns the pattern.
|
AbstractScript |
getPatternScript()
Gets the optional script that decides which route to pick.
|
Route |
getRoute(String key) |
Route[] |
getRoutes()
Returns the array of Route elements.
|
static Routes.Builder |
newBuilder() |
String |
toString() |
@Deprecated public static Routes createRoutes(String pattern, Route... routes)
newBuilder()
.pattern
- The pattern.routes
- An array of Route elements.@PluginBuilderFactory public static Routes.Builder newBuilder()
public String getPattern(LogEvent event, ConcurrentMap<Object,Object> scriptStaticVariables)
event
- The log event passed to the script (if there is a script.)scriptStaticVariables
- The script's static variables.public AbstractScript getPatternScript()
public Route[] getRoutes()
Copyright © 1999-2019 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.