ConsoleSink constructor
ConsoleSink({})
Creates a console sink. Set color explicitly for tests or non-tty
writers; otherwise it's auto-detected from stdout.supportsAnsiEscapes.
stackFrames caps how many stack lines are printed per record.
Implementation
ConsoleSink({
this._minLevel = LogLevel.trace,
bool? color,
this.stackFrames = 8,
void Function(String line)? write,
}) : _color = color ?? _detectAnsi(),
_write = write ?? _defaultConsoleWrite;