[Development] Work on qDebug and friends

David Faure faure at kde.org
Sun Feb 5 23:54:33 CET 2012

On Sunday 05 February 2012 10:50:48 BRM wrote:
> > From: Diego Iastrubni <diegoiast at gmail.com>
> >
> >On Fri, Feb 3, 2012 at 1:10 PM, David Faure <faure at kde.org> wrote:
> >
> >Once this goes in I'll add support for %pid%, %processname% and
> >%timestamp%,>
> >>and we'll be all set :)
> >
> >You meant %threadid% of course... right?
> Wouldn't having both available be useful?

Yes, the PID is definitely what I meant, it's very much needed, for the case of multiple
daemons running in the background and outputting debug into the same file. The PID
is then useful for killing a run-away daemon, or for attaching gdb to it, etc.

Without the PID, impossible to notice that these two lines come from two different
processes, for instance:
20:29:11 konqueror(2630) kdemain: Unknown class "" in session saved data! 
20:29:11 konqueror(2625) KonqSessionManager::askUserToRestoreAutosavedAbandonedSessions: "/home/dfaure/.kde4/share/apps/konqueror/autosave/owned_by_1.33/_1.60"

David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. KDE Frameworks 5

More information about the Development mailing list