News for hackers. Stuff that matters.
Re:Discussion: structured, leveled logging by GeneralMayhem on Sunday September 11, 2022 @06:00PM (#32803701)
> 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.

Re:Discussion: structured, leveled logging by kitd on Monday September 12, 2022 @02:24AM (#32806706)
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.