[Development] (long) thoughts on categorized logging (qLog)

David Faure david.faure at kdab.com
Fri Feb 24 19:44:40 CET 2012


On Friday 24 February 2012 10:07:52 Lincoln Ramsay wrote:
> However, a format string of say, "%{category}: %{file}:${line} %{func} 
> %{message}" would look odd when the category is empty.
> 
> mycat: foo.c:23 main() qCDebug
> 
> : foo.c:23 main() qDebug
> 
> I took the easy way of declaring a category for qDebug so I wouldn't 
> have to figure out how to do conditional formatting :)

Fair enough. But then call it "default", not "legacy".

-- 
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 mailing list