There was a regression compared to v8, where we now output to stderr by mistake. This PR introduce introduces a function .out to the logger object, so we now have:
.out for program output
.info for informational messages such as logs
.error for errors
The defaults for .info and .error are stderr, while .out is stdout. This allows for developers importing the package to completely turn off logging or customize it as their need too.
If the option -q, --quiet is passed, then .info does nothing.
Fixes #215.
There was a regression compared to v8, where we now output to
stderr
by mistake. This PR introduce introduces a function.out
to the logger object, so we now have:.out
for program output.info
for informational messages such as logs.error
for errorsThe defaults for
.info
and.error
arestderr
, while.out
isstdout
. This allows for developers importing the package to completely turn off logging or customize it as their need too.If the option
-q, --quiet
is passed, then.info
does nothing.License: MIT Signed-off-by: Henrique Dias hacdias@gmail.com