simple logging for c++11