c++11 object oriented logging class