News for hackers. Stuff that matters.
Re:"Rules" that terminal programs follow by immibis on Thursday December 12, 2024 @05:41PM (#42404171)
I don't think that 6 different streams that will always go to the same place but some of them are usually turned off are very useful. Standard-error/user is useful because it goes to a different place. Levels would be better suited to a simple global variable, or a level associated with each printed line. The chance that someone redirects errors to error.log is reasonable, but the chance that someone redirects errors to error.log and warnings to warning.log and debug to debug.log and verbose to verbose.log is pretty low.
Re:"Rules" that terminal programs follow by AndrewDucker on Friday December 13, 2024 @04:24AM (#42407170)
I turn on Verbose logging sometimes, to get more info.

Error logging can be set to either spit out the error and continue, or to stop processing, which is very useful.

Warning and error messages come out in their own colours automatically, which is nice.

And sure, you can just have them all come out to the same place. But having the options to configure them is very handy.

Re:"Rules" that terminal programs follow by immibis on Friday December 13, 2024 @05:14AM (#42407379)
None of this is related to them being separate streams instead of metadata in one stream