Lightweight logging for C++