anyLogOf function

Matcher anyLogOf(
  1. dynamic messageOrMatcher
)

Matches LogRecord of any level whose message is messageOrMatcher.

anyLogOf('Hello World)';     // Exactly match 'Hello World'.
anyLogOf(contains('ERROR')); // Contains the sub-string 'ERROR'.

Implementation

Matcher anyLogOf(dynamic messageOrMatcher) =>
    _LogRecordMatcher(anything, messageOrMatcher);