simple logging for c++