Logger class for C++