C++ Thread-safe logging library