logging system for c++