Routes all printed output to stdout (default) or stderr.
--json commands switch to stderr so stdout carries only the JSON report.
Stream to print to
Registers a listener that receives every error() message, or null to
remove it. Used by the JSON report collector to capture failure text.
Listener for error messages
Privateprint
Formatter class for creating styled terminal output with Codeforces theme. Uses chalk library for coloring with custom hex colors (#1E88E5 blue, #FF6B6B red).
Formatter
Example