[Development] QLog ( Work on qDebug and friends)
robin+qt at viroteck.net
Thu Feb 2 13:56:49 CET 2012
On Thu, Feb 2, 2012 at 2:22 PM, David Faure <david.faure at kdab.com> wrote:
> 1) showing more information (file, line, method, process name and PID) in the
> default message handler, probably based on env vars (easy to add now that
> QMessageLogContext has the necessary information).
Please don't show *all* of that by default. Having it *available* is
useful, but especially for people working on single applications,
things like PID in the console output is completely useless spam.
Making it *available*? Sure. KDE could have a message handler that did
whatever they wanted, without needing kDebug.
Another thing to note is that debugging carries a performance penalty.
You definitely don't want that compiled in in release builds, and
you'd still want to avoid debug in performance-critical areas, even if
output wasn't switched on.
Everything else in your mail gets a +3 "approved; give this guy a payrise" :-)
More information about the Development