publish method
Publishes the given log event.
Implementation
@override
void publish(Log log) {
// After close, publishing is a no-op: the base publish would throw a
// StateError into the logging call, and the buffer would never be
// drained.
if (_closed || log.level < minLevel) return;
super.publish(log);
}