an Logger example for CXX QT4