C++ simple logger