write method

void write(
  1. LogEntry entry
)

Writes the entry to a File.

Implementation

void write(LogEntry entry) {
  if (_sink == null) {
    return _buffer.add(entry);
  }

  _sink?.writeln(entry);
}