On Wednesday 01 February 2012 11:20:17 Lincoln Ramsay wrote: > In summary: > 1) Generated default logging config file (for sanity).
I agree (please use QStandardPaths::writableLocation(QStandardPaths::ConfigLocation) as the base directory for it) > 2) QLog::setDefaultConfigFile for application writers. > 3) QLOG_CONFIG_FILE for users. +1 However I would like this to be called qDebug(AREA) rather than qLog(AREA). Otherwise we are presenting a confusing situation of two competing debug- output frameworks inside Qt. Couldn't the definition and use of categories be done in the newly merged corelib/global/qlogging.h, and shipped as part of the QMessageLogContext class? Then the default message handler can do what your qlog code is doing, i.e. write the stuff into the right log file, if the app or the user chose log files (by default I think this should still go to stderr, logging to files should only be an additional option). I think this would be a much more integrated solution than asking people to choose between qDebug (stderr) and qLog (files) at development time, and then letting no choice to the final user, or to other developers working on the same code later on. -- David Faure | [email protected] | 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 _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
