onRecord property

Stream<LogRecord> get onRecord

Returns a stream of messages added to this Logger.

You can listen for messages using the standard stream APIs, for instance:

logger.onRecord.listen((record) { ... });

Implementation

Stream<LogRecord> get onRecord => _getStream();