Package com.gigaspaces.log
Class RegexLogEntryMatcher
java.lang.Object
com.gigaspaces.log.LogEntryMatcherFilter
com.gigaspaces.log.RegexLogEntryMatcher
- All Implemented Interfaces:
LogEntryMatcher,Serializable
A log entry matcher filter that will match on log entries which match on the given regular
expression.
- Author:
- kimchy
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.log.LogEntryMatcher
LogEntryMatcher.InitializationContext, LogEntryMatcher.Operation -
Constructor Summary
ConstructorsConstructorDescriptionRegexLogEntryMatcher(String regex) RegexLogEntryMatcher(String regex, LogEntryMatcher matcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected LogEntryMatcher.OperationShould the operation be filtered or not.voidCalled on the loggable component side (server) before starting to traverse the log file.static intMethods inherited from class com.gigaspaces.log.LogEntryMatcherFilter
entries, filterJustLogs, match
-
Constructor Details
-
RegexLogEntryMatcher
-
RegexLogEntryMatcher
-
-
Method Details
-
regexFlags
public static int regexFlags() -
initialize
Description copied from interface:LogEntryMatcherCalled on the loggable component side (server) before starting to traverse the log file.- Specified by:
initializein interfaceLogEntryMatcher- Overrides:
initializein classLogEntryMatcherFilter- Throws:
IOException
-
filter
Description copied from class:LogEntryMatcherFilterShould the operation be filtered or not.LogEntryMatcher.Operation.BREAKin order to break and finish the matching process.LogEntryMatcher.Operation.IGNOREto ignore the current log entry (so it won't be passed to the delegated matcher). AndLogEntryMatcher.Operation.CONTINUEto pass the current log entry to the delegated matcher.- Specified by:
filterin classLogEntryMatcherFilter
-