Lightweight logging class for C++ applications