foolang
foolang copied to clipboard
Log class
Effectively:
class Log {}
direct method print: message
$Log print: message
where $Log defaults to either stdout or stderr, but user can control at the command-line, or Main can override the target.
foo --log=test.log ...
foo --no-log ...
Allows removal of the Debug
class from CTranspiler, and Output#debug