3 ms·
A simple false dichotomy. The problem is with using a single output stream for both warning and operational/fatal messages. Give the program an option to output
by karmakaze 3y ago
A simple false dichotomy. The problem is with using a single output stream for both warning and operational/fatal messages. Give the program an option to output warnings separately and the sysadmin should use that in any automation and note when it has output without ringing the pager.
- omginternets 3y agoIf only we had separate output streams for logs and actual program output…
- karmakaze 3y agoThere's still a problem if operational output goes to stdout and error output to stderr. Where do the warnings go that don't directly affect either? Perhaps a better solution is to have structured 'pipes' that some experimental shells/programs use.
- omginternets 3y agoI'm not an ops guy, but my understanding was that stdout was for ordinary program output and stderr was for logs, which in a modern application should be structured , including a level/severity field.
- karmakaze 3y agoYes that works with the caveat that each program can have its own among widely varying error output formats.