Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> But because multiple http requests are running at the same time, they all get interleaved in the actual log.

Many logging libraries will export a structured preamble including the timestamp and PID, which is enough to reconstruct single-threaded time histories when you want them, while still allowing you to see cross-thread time-correlated issues when you need that as well.



Unfortunately async code often blows that idea up. Cf. Node apps where the log comes from some arbitrary callback with little to no indication of where the root cause occurred.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: