Re: [Development] Proposed API change: Change signature of QMessageHandler to use QString

2012-04-12 Thread wolfgang.beck
Before I would do such a change I would check if there are other projects in QT they install their own messaghandler. I think they all need to change their code as well. Maybe we should keep it as it is. Cheers, WB -Original Message- From: development-bounces+wolfgang.beck=nokia@qt

[Development] QLogger is available

2012-04-04 Thread wolfgang.beck
Hi guys, QLogger is now available as a module: git clone http://codereview.qt-project.org/p/playground/qlogger At this moment %{category} syntax in MessagePattern can't be used because we need to wait for a qtbase update. Therefore we created a QLogger module that works with the current qtbase.

[Development] Request for a new Playground project

2012-03-28 Thread wolfgang.beck
Hi guys, I'm following the steps on http://wiki.qt-project.org/Creating_a_new_module_or_tool_for_Qt To get a playground project created for qlogger in place. qlogger should be the previous discussed category logging mechanism on the developer ML. (see http://codereview.qt-project.org/#change,13

[Development] QLogging with wildcards categories

2012-03-12 Thread wolfgang.beck
Hi guys, A new patch is ready. Logging into a file is now removed because of possible maintenance trouble. http://codereview.qt-project.org/#change,13226 Cheers, WB ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mai

[Development] qLog wildcards categories

2012-02-29 Thread wolfgang.beck
Hi guys, I need to have a vote on a implementation detail regarding filtering of wildcards categories. Let's say you have a category defined and a wildcard category as well. A: Do you think the order in the configuration file plays an important rule or B: If you set specific a category let's say

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-21 Thread wolfgang.beck
OK, So we've now 2 options to set the config file. 1. QLOG_CONFIG_FILE environment variable 2. setDefaultConfigFile function. What do you mean with: ... and to supplying a QIODevice*? B.R. WB -Original Message- From: development-bounces+wolfgang.beck=nokia@qt-projec

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-21 Thread wolfgang.beck
We had this discussion before in the ML to add cool stuff like Log into local socked, syslog or whatever. This can be done later in an AddOn for example. Cheers, WB -Original Message- From: development-bounces+wolfgang.beck=nokia@qt-project.org [mailto:development-bounces

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-21 Thread wolfgang.beck
Why you want to use the categories somewhere else then QLog? You want to reinvent a mechanism to filter the categories then? If you don't filter what sense makes having the categories? I mean you still have qDebug and you can write whatever you like. Cheers, WB -Original Message- From:

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-21 Thread wolfgang.beck
Yes David, Absolutely right. B.R. WB -Original Message- From: ext David Faure [mailto:david.fa...@kdab.com] Sent: Tuesday, February 21, 2012 8:08 PM To: Koehne Kai (Nokia-MP/Berlin) Cc: Beck Wolfgang (Nokia-MP/Brisbane); development@qt-project.org Subject: Re: [Development] QLog ( Wor

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-21 Thread wolfgang.beck
> So how about adding another QtMsgType called QLogMsg, that qLog() uses? In > contrast to qDebug/QtDebugMsg, qLog/QtLogMsg messages would not be processed > by default, unless the configuration file (or an environment variable) says > so ... There is no need for this Kai. The macro will not ev

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-21 Thread wolfgang.beck
QLOG ENABLED I guess you misunderstood me. QLog is enabled ONLY if a config file was found. We have 3 ways to define the config file: 1. Default using application name configuration default path and organization name for the path 2. Application developer can call the QLog function "setDefaultConf

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-20 Thread wolfgang.beck
please visit: http://codereview.qt-project.org/13226 B.R. WB -Original Message- From: development-bounces+wolfgang.beck=nokia@qt-project.org [mailto:development-bounces+wolfgang.beck=nokia@qt-project.org] On Behalf Of ext Thiago Macieira Sent: Tuesday, February 21, 2012 3:18

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-20 Thread wolfgang.beck
file and change the category values? B.R. WB -Original Message- From: development-bounces+wolfgang.beck=nokia@qt-project.org [mailto:development-bounces+wolfgang.beck=nokia@qt-project.org] On Behalf Of ext BRM Sent: Tuesday, February 21, 2012 12:14 AM To: developme

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-20 Thread wolfgang.beck
Yes I know and I've changed it. No QSetting is used anymore. B.R. WB -Original Message- From: development-bounces+wolfgang.beck=nokia@qt-project.org [mailto:development-bounces+wolfgang.beck=nokia@qt-project.org] On Behalf Of ext Thiago Macieira Sent: Monday, February 20,

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-20 Thread wolfgang.beck
ssible but still having the feature that you can activate it without recompiling the code. Cheers, WB -Original Message- From: development-bounces+wolfgang.beck=nokia@qt-project.org [mailto:development-bounces+wolfgang.beck=nokia@qt-project.org] On Behalf Of ext David Faure Se

[Development] QT_MESSAGE_PATTERN

2012-02-16 Thread wolfgang.beck
Hi Kai, I'm trying to use the QMessagePattern and I'm missing some documentation here. Is the usage of the environment variable QT_MESSAGE_PATTERN even documented? Cheers, WB ___ Development mailing list Development@qt-project.org http://lists.qt-proje

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-16 Thread wolfgang.beck
and friends) Already done. I'm using if (!global_enabled()) /*NOP*/; else QMessageLogger(__FILE__, __LINE__, Q_FUNC_INFO).debug Anyway I will make sure that qlog still works even with -DQT_NO_WARNING_OUTPUT Cheers, WB -Original Message- From: development-bounces+wolfgang.b

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-16 Thread wolfgang.beck
Already done. I'm using if (!global_enabled()) /*NOP*/; else QMessageLogger(__FILE__, __LINE__, Q_FUNC_INFO).debug Anyway I will make sure that qlog still works even with -DQT_NO_WARNING_OUTPUT Cheers, WB -Original Message- From: development-bounces+wolfgang.beck=nokia..

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-12 Thread wolfgang.beck
Well I think I can change the macro name very easy but we can't name it qDebug. So maybe qDebugCat or somethink like this. But I think the macro is very necessary special if you develop for devices they don't have the capacity of a desktop machine. Cheers, WB -Original Message- Fro

[Development] QLog ( Work on qDebug and friends)

2012-02-09 Thread wolfgang.beck
QLog uses QMessageLogger. Please check patch: http://codereview.qt-project.org/#change,13226 B.R. WB ___ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-09 Thread wolfgang.beck
Hi Kai, The controlling of the category will be done using a configuration file. QLog contains a private class that creates a file watcher for the configuration file. So not only if you start the application but during runtime as well the category filtering can be changed dynamically by changing

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-08 Thread wolfgang.beck
Hi Kai, I think this was a very good idea so I've tried it but I've run into one important problem. If I use this trick I have to call the overloaded function in QMessageLogger: e.g. 1. void debug(QMessageCategory category, const char *format, ...); and 2. QDebug debug(QMessageCategory category)

[Development] QLog ( Work on qDebug and friends)

2012-02-06 Thread wolfgang.beck
I'm working to integrade category log with QMessageLogger & Co and unfortunatelly we can not use qDebg() << "my message" because there is already a debug(const char *msg, ...) function combining with the macro #define qDebug QMessageLogger(__FILE__, __LINE__, Q_FUNC_INFO).debug. So I use a new

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-05 Thread wolfgang.beck
e and maybe environment variable but no recompiling neccessary. -- wbeck -Original Message- From: development-bounces+wolfgang.beck=nokia@qt-project.org [mailto:development-bounces+wolfgang.beck=nokia@qt-project.org] On Behalf Of ext BRM Sent: Friday, February 03, 2012 11:33

Re: [Development] QLog ( Work on qDebug and friends)

2012-02-02 Thread wolfgang.beck
cool stuff like writing into sockets can be done in an addOn or even in a plugin. -- WB -Original Message- From: development-bounces+wolfgang.beck=nokia@qt-project.org [mailto:development-bounces+wolfgang.beck=nokia@qt-project.org] On Behalf Of ext Robin Burchell Sent: Thursday

[Development] QLog ( Work on qDebug and friends)

2012-01-30 Thread wolfgang.beck
Hi there, I'm finished to make a patch and created the documentation of QLog. To be sure that all can read the document I've attached it to this EMail. The main focus on this project is: 1. Logging in a file: 2. Enable or disable logging without recompiling your project. 3. Logging with categorie

Re: [Development] Development Digest, Vol 4, Issue 94

2012-01-29 Thread wolfgang.beck
Sorry, forgot the Subject -Original Message- From: Beck Wolfgang (Nokia-MP/Brisbane) Sent: Monday, January 30, 2012 10:02 AM To: development@qt-project.org Cc: 'craig.sc...@csiro.au' Subject: RE: Development Digest, Vol 4, Issue 94 >Date: Sun, 29 Jan 2012 01:55:54 +1100 >From: >Subject:

Re: [Development] Development Digest, Vol 4, Issue 94

2012-01-29 Thread wolfgang.beck
>Date: Sun, 29 Jan 2012 01:55:54 +1100 >From: >Subject: Re: [Development] Work on qDebug and friends >To: >Message-ID: <6219d4f4-6cd0-4c5f-9e82-3a4a722ed...@csiro.au> >Content-Type: text/plain; charset="us-ascii" >Sorry for the lack of context (dealing with digest emails while on leave :-P ). >

Re: [Development] Work on qDebug and friends - debug areas

2012-01-26 Thread wolfgang.beck
I think QLog from QTopia was very good. You define your category in your project and QLog will define a static bool for each category e.g. # define QLOG_ENABLE(dbgcat) \ class dbgcat##_QLog : public QLogBase { \ public: \ static inline bool enabled() { return 1; }\ };