News for hackers. Stuff that matters.
Re:NanoLog – a nanosecond scale logging system for C++ by cma on Sunday September 01, 2019 @06:30PM (#20855443)
Shared memory to a background process is better, in that it can survive most classes of process crash.
Re:NanoLog – a nanosecond scale logging system for C++ by gpderetta on Sunday September 01, 2019 @06:45PM (#20855508)
Yes it is significantly more robust, the downside is that you have to copy everything, including static vars and format strings. An option is to fork early on process startup and possibly share some memory.

We simply catch all signals and do a best effort attempt to flush the queue before aborting.