[Development] QLog ( Work on qDebug and friends)
david.faure at kdab.com
Thu Feb 2 12:39:59 CET 2012
On Wednesday 01 February 2012 15:03:57 BRM wrote:
> It does the job for a very basic logging system, but when you need to start
> categorizing your log messagse it does not do well at all.
Hence the idea of adding the category to the new QMessageLogContext class
> However, we should also offer a more extensive logging system that can be
> used instead - which registers a message handler and takes over.
Yes. I don't mind multiple "outputs", I just want a single "input", i.e. that
the code uses qDebug() / qDebug(AREA) no matter what output (message handler)
is being used.
> Or what about when you want to record to multiple facilities? E.g. sending
> to syslog and your own file logging.
> (This is useful in distributed logging situations so that you can capture a
> local log and still send out to the distributed log as well.)
Yes, all that can be done by the QLog code, triggered by the qt message
handler which would provide it the info it needs.
David Faure | david.faure at kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
More information about the Development