simple log for c++