[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debugging Akonadi



On Sun, Oct 13, 2024 at 9:59 PM Hefee <hefee@debian.org> wrote:
>
> 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
>

Great, thanks hefee!

Checked my GMAIL/SMTP/XAUTH2 connection/communication while sending a
NEW email out of Kmail2:

`QT_MESSAGE_PATTERN="[%{time process} %{type}] %{appname} %{category}
%{function} - %{message}" QT_LOGGING_RULES="*.*=true;qt.*=false"
akonadictl restart`

..guess I need to switch to Google-Authenticator app on my smartphone :-).

Best regards,
-Sedat-


Reply to: