3 ms·
Maybe just convention? It's standard practice to use stdout for directly interacting with a user and stderr for log/error type messages. You can redirect stde
by ktm5j 7y ago
Maybe just convention? It's standard practice to use stdout for directly interacting with a user and stderr for log/error type messages. You can redirect stderr to a file to get all of your log messages, but keep stdout available for interacting with the user. Super useful to separate meta-messages out in this manner.
Here's a good blog post with more info on stderr for those interested: https://www.jstorimer.com/blogs/workingwithcode/7766119-when-to-use-stderr-instead-of-stdout https://www.jstorimer.com/blogs/workingwithcode/7766119-when...
- anderspitman 7y agoMight be because stdout is buffered, so you don't always get output right away, while stderr is unbuffered.