Log sink implementation. Fixes #351

I don't understand why you're going from std::string to QString and then back...