withFilter(sink: Sink,filter: FilterLike,): Sink
Turns a sink into a filtered sink. The returned sink only logs records that pass the filter.
sink: Sink
A sink to be filtered.
filter: FilterLike
A filter to apply to the sink. It can be either a filter function or a LogLevel string.
A sink that only logs records that pass the filter.