Constructor
new LogEventMatcher(query)
Constructs a LogEventMatcher that can be used to match LogEvents
against the specified query
Parameters:
Name | Type | Description |
---|---|---|
query |
String | The text query |
Methods
match(logEvent) → {Boolean}
Returns true if the logEvent matches this' query
Parameters:
Name | Type | Description |
---|---|---|
logEvent |
LogEvent | The LogEvent to test |
Returns:
True if the log event matches
- Type
- Boolean
matchAny(logEvents) → {Boolean}
Returns true if any of the log events provided match this' query
Parameters:
Name | Type | Description |
---|---|---|
logEvents |
Array.<LogEvent> | An array of log events to test |
Returns:
True if any of the log events match
- Type
- Boolean