write method

void write()

Writes the entries to the console.

Implementation

void write() {
  _streamSubscription = _controller.stream.listen((entry) {
    // Print to standard output, so it can be read by the CLI.
    // ignore: avoid_print
    print('PATROL_LOG ${jsonEncode(entry.toJson())}');
  });
}