Simple Thread Safe logging system for Qt application