When ts-loader starts up, it logs messages like this to stderr:
ts-loader: Using [email protected] and /some/path/tsconfig.json
This is because the log function calls console.log.apply(console, message), and the console variable is overridden as follows:
var console = new Console(process.stderr);
I know most of the log values outputted by ts-loader are errors, but the Using typescript@... message isn't an error. Logging it to stderr isn't great, because many apps are configured to treat stderr output as actual errors (and write it to a DB, email an administrator, etc.)
I am aware this can be suppressed by setting silent to true, but then this suppresses other potentially useful error information.
Would it be possible not to log the Using typescript@... to stderr, but still log other messages to stderror?
When
ts-loaderstarts up, it logs messages like this to stderr:This is because the
logfunction callsconsole.log.apply(console, message), and theconsolevariable is overridden as follows:I know most of the log values outputted by
ts-loaderare errors, but theUsing typescript@...message isn't an error. Logging it to stderr isn't great, because many apps are configured to treat stderr output as actual errors (and write it to a DB, email an administrator, etc.)I am aware this can be suppressed by setting
silenttotrue, but then this suppresses other potentially useful error information.Would it be possible not to log the
Using typescript@...to stderr, but still log other messages to stderror?