Runtime optimizations for logging by writing a buffer within a boost::thread, tester added profile the logging