Hacker News new | ask | show | jobs
by jdadj 1431 days ago
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.