Hey,

> `QT_LOGGING_RULES="*.*=true;qt.*=false" akonadictl start`
> ^^ restart does not work here - killed it from a different terminal
> with `akonadictl stop`
> 
> Is it possible to add a TIMESTAMP?

QT_MESSAGE_PATTERN="[%{time process} %{type}] %{appname} %{category} %
{function} - %{message}" QT_LOGGING_RULES="..."

you have full control about the log format - see the documentation:
https://doc.qt.io/qt-6/qtlogging.html#qSetMessagePattern

btw. you can enable/disable different categories in QT_LOGGING_RULES. I use
*.*=true to see everything. Most of the time, if I'm debugging KDEPIM stuff the 
issue is not inside qt, that's why I disable every qt category (qt.*=false). 
As qt will log very much. 
To see all different logging categories you can run kdebugsettings, you can 
also use it to modify the logging for your system. BUT ATTENTION: this can fill 
your log files very fast! That's why I  suggest to use QT_LOGGING_RULES for 
debug exactly one call of a program, if needed.

regards,

hefee

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to