Use a custom message handler for catching log

Authored by sebas on Jul 27 2016, 1:51 AM.

Description

Use a custom message handler for catching log

This messagehandler intercepts calls into qCDebug and writes the
messages in the kscreen categories to our log file.
All messages are then passed to the previously installed messagehandler.

This is a pretty neat solution, since:

  • we can make use of the stream operators from qDebug
  • we don't need to rewrite all the debug statements
  • normal debug is otherwise still working

Details

Committed
sebasJul 27 2016, 1:51 AM
Differential Revision
D2295: improve logging for kscreen
Parents
R110:a54e62f321d6: disable logging for most autotests
Branches
Unknown
Tags
Unknown