Logging now thread-safe