Writes the entry to a File.
entry
void write(LogEntry entry) { if (_sink == null) { return _buffer.add(entry); } _sink?.writeln(entry); }