3

boost logging explicitly says it is not.

easylogging++ looks like it sets up extern'ed static state that might be trouble after a fork.

Requirements: log rolling after a certain size, support of logging levels, thread-safe.

I'd be happy with something that even needed to be reinitialized after forking.

2

I was successfully using spdlog in such scenario. Just initialize logger after calling fork.

https://github.com/gabime/spdlog

  • 1
    Welcome aboard. this is a good answer (+1), but it is not very helpful. Normally, we ask you to explain why your recommendation meets the OP's needs. In this case, with the main emphasis being on Forking, I note that the page mentions benchmarking with a number of threads, so this should suit the OP's requirements. – Mawg Jan 8 '18 at 12:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.