Optional external sink (e.g. sentry). Receives formatted lines.
static void Function(String line)? sink;