The best part of this was getting to the tab I had opened long ago and wondering, "how did I get to this page?" and then realizing (after reading it) that I was rick-rolled by HN.
Haha love it. Question regarding getting the most from your application logs. My practice is to prefix log statements with the file name and function that’s generating the log. Jumping to that code is just a quick search away. But it does require a bit of manual work to write that extra metadata. I do this because devs just put random logs and it’s so hard to know where they’re coming from. Any best practices?
Not sure about best practices. But at our small shop, we’ve rigged up our homegrown logging infrastructure to do that automatically by using the C/C++ macros __FILE__, __FUNCTION__ and __LINE__
We hide the data in our log viewer to reduce clutter but display it as a tooltip.
Recently overhauled my rsyslog setup to do timestamps in rfc3339 format. Almost as good as keeping a chain saw chain nicely sharpened, and not replaced backwards!
Since most of the replies were about that, I'm going to move them underneath this stub.
Please use the original title, unless it is misleading or oh never mind.