Logging class for C++