Class: LogEventMatcher

LogEventMatcher

A LogEventMatcher is used to determine if a LogEvent matches a text query.

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
Source:

Methods

match(logEvent) → {Boolean}

Returns true if the logEvent matches this' query
Parameters:
Name Type Description
logEvent LogEvent The LogEvent to test
Source:
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
Source:
Returns:
True if any of the log events match
Type
Boolean