News for hackers. Stuff that matters.
Re:How to write to stderr so people will like you by zokier on Friday April 16, 2010 @02:00PM (#1271356)
imho better way to solve this 'problem' would be to write error messages in such way that you don't need stdout as context to interpret them.
Re:How to write to stderr so people will like you by ars on Friday April 16, 2010 @04:27PM (#1271831)
That's good to do, but you should flush things correctly anyway. Otherwise your error messages and output conflict.
Re:How to write to stderr so people will like you by influx on Friday April 16, 2010 @03:54PM (#1271725)
Agreed, and using a standard logging library like log4* that gives your users a nice way to analyze their logs along with a timestamp of when they happened.