LogSink constructor
An empty sink that keeps the last capacity records, 1000 by default,
and appends each to the file path when one is given.
capacity must be positive.
Implementation
LogSink({this.capacity = 1000, this.path})
: assert(capacity > 0, 'capacity must be positive, not $capacity');