logEmpty method

void logEmpty()

Logs an empty line to separate blocks. Never written to the log file.

Suppressed below LogVerbosity.normal: a --quiet run should be a dense list of errors, not a page of blank lines.

Implementation

void logEmpty() {
  if (!_isVisible(LogLevel.info)) return;
  final captured = Zone.current[ColorizeLogger._zoneSink] as StringSink?;
  if (captured != null) {
    captured.writeln('');
    return;
  }
  Spinner.active?.erase();
  (ColorizeLogger.reserveStdout ? stderr : stdout).writeln('');
  Spinner.active?.paint();
}