Creates a console-backed logging handler.
By default:
- messages at level >= warning are written to stderr
- lower levels are written to stdout
- colours are auto-enabled when a TTY is detected
@eryx/logging/ConsoleHandler ModuleConsole log handler.
Writes formatted text records to stdout/stderr, with optional ANSI colour output and optional source metadata rendering.
stderrLevel controls when records are routed to stderr.
Creates a console-backed logging handler.
By default:
Optional handler options (level/filter/custom writer/etc.).
A logging handler suitable for logging.addHandler.