Log Collector
Collects log messages, so they may be asserted on for testing.
Use the optional parameters of takeMessages to constrain which log messages are returned.
Functions
Waits until a matching event is logged, and returns it. The returned event and all preceding events are also removed.
Take the first matching event, optionally leaving unmatched logs in this collector.
Removes all currently-collected log events and returns those that match the requested criteria.
Takes all matching events, optionally leaving unmatched logs in this collector.
Waits until a matching event is logged, and returns its message. The returned event and all preceding events are also removed.
Takes the first matching message, optionally leaving unmatched logs in this collector.
Removes all currently-collected log messages and returns those that match the requested criteria.
Takes all matching messages, optionally leaving unmatched logs in this collector.