public static class XLogStreamer.Filter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_ALL_REGEX |
Constructor and Description |
---|
XLogStreamer.Filter() |
Modifier and Type | Method and Description |
---|---|
void |
constructPattern()
Constructs the regular expression according to the filter and assigns it to fileterPattarn.
|
static void |
defineParameter(String filterParam) |
Map<String,String> |
getFilterParams() |
boolean |
isFilterPresent() |
boolean |
matches(ArrayList<String> logParts)
Checks if the logLevel and logMessage goes through the logFilter.
|
static void |
reset() |
void |
setLogLevel(String logLevel) |
void |
setParameter(String filterParam,
String value) |
ArrayList<String> |
splitLogMessage(String logLine)
Splits the log line into timestamp, logLevel and remaining log message.
|
public static final String ALLOW_ALL_REGEX
public XLogStreamer.Filter()
public void setLogLevel(String logLevel)
public void setParameter(String filterParam, String value)
public static void defineParameter(String filterParam)
public boolean isFilterPresent()
public boolean matches(ArrayList<String> logParts)
logParts
- public ArrayList<String> splitLogMessage(String logLine)
logLine
- public void constructPattern()
public static void reset()
public final Map<String,String> getFilterParams()
Copyright © 2015 Apache Software Foundation. All Rights Reserved.