[Development] Cake and eating it too for qDebug printing to system log - https://codereview.qt-project.org/89357
Kai.Koehne at digia.com
Fri Jul 11 10:08:50 CEST 2014
> -----Original Message-----
> From: development-bounces+kai.koehne=digia.com at qt-project.org
> Some background: on Sailfish, we launch all major system services (and
> UI) through systemd services (& user session for the UI parts). Those
> processes may then choose to execute processes of their own (the most
> prominent example being the UI environment which will launch applications
> in response to user input). With a default setup, systemd will log everything
> sent to stderr of systems-launched processes, and child-launched processes
> will have their stderr output attributed to the systemd service which
> launched them.
Out of curiosity: Would an opt-in solution (the application explicitly has to tell Qt to log to journal, e.g. through an API, maybe even through qtlogging.ini file) work for your use case?
I'm wondering whether such a setup wouldn't be a good one for desktop distributions, too. I can see that e.g. warning and errors from kwin are best kept in journald. Not sure whether that means though that you necessarily want all spurious warnings and messages from every single KDE app in there.
More information about the Development