4 ms·
Submitted title was "Getting the most from your logs". Since most of the replies were about that, I'm going to move them underneath this stub. Please use the
by dang 4y ago
Submitted title was "Getting the most from your logs".
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.
- dsimmons 4y agoAm I the only one that (wrongly) assumed this was in reference to application logs and not... literal logs? xD
- deleted 4y ago[deleted]
- dopidopHN 4y agoI kept scrolling to see what type of software logs that article was about. While scrolling I was thinking it was the most well researched and involved tongue in cheek intro I read in a while.
- brudgers 4y ago“type of software logs” Showing results for *softwood logs*
- m_antis89 4y agoyes
- LewisVerstappen 4y agoVery good advice. Great tips on logging when you're working with trees.
- joshxyz 4y agocome on. hahahaha.
- hlieberman 4y agoI feel like I just got rick-rolled. I love it; brudgers, you are a mad genius.
- hamasho 4y agoI'm redesigning my project's architecture and like "Wow! This article is so timely!" It's exactly what I felt too.
- mandeepj 4y agoThe title can be edited to include “Tree” before “Logs”
- deleted 4y ago[deleted]
- whitesilhouette 4y agoNah! This one's better. A mood uplift.
- mandeepj 4y agoAlright! Perfect example of a little thing bringing happiness for some :-)
- AbraKdabra 4y agoI don't know if you deserve a prize or a ban from HN for using that title.
- physicsgraph 4y agoThe 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.
- manibatra 4y agoThe one time I decided to open the link first rather than read the comments.
- dvtrn 4y agoOh for crying out loud Thanks for the evening chuckle brudgers
- helsontaveras18 4y agoHaha 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?
- MarkSweep 4y agoVarious languages have ways of automatically including file paths and line numbers without the caller having to include them every time C# has CallerFilePathAttribute https://docs.microsoft.com/en-us/dotnet/api/system.runtime.compilerservices.callerfilepathattribute https://docs.microsoft.com/en-us/dotnet/api/system.runtime.c... C has the __FILE__, __func__, and __LINE__ pre-processor macros.
- jdadj 4y agoNot 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.
- dmckeon 4y agoRecently 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!
- TuringNYC 4y agoI kept thinking this was going to be an Allegory for system logs until I realized it was literal
- fnordpiglet 4y agoReally I prefer structured logs.
- brudgers 4y agoSomething like a log cabin maybe?
- brudgers 4y agoAre you saying the title was a clear cut violation?