acu163693 added support for stderr logging for tools that output to stdout but might have to log to stderr, etc.
deprecated stdout module in favor of console module
better newline replacement, also tabs and carriage return