bashlog icon indicating copy to clipboard operation
bashlog copied to clipboard

All log levels should go to stderr

Open OJFord opened this issue 4 years ago • 0 comments

All logs should be output (when BASHLOG_FILE=0 of course) to stderr, so that stdout is reserved for meaningful program output, for easy pipelines etc.

Currently, only the 'error' level log (and lower, more critical) are on stderr.

A real example of this causing problems is in tfutils/tfenv#310.

OJFord avatar Nov 16 '21 00:11 OJFord