Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QLogging: switch the systemd/journald sink to unformatted mode
The extra information is already stored in the journal metadata anyway, so there's no need to duplicate it. This matches the Apple Unified Logger output now. For most people, the visible difference will be that the category name is not included in the plain "journalctl" output. Aug 22 21:25:43 tjmaciei-mobl5 akonadi_imap_resource[4948]: org.kde.pim.kimap: Connection to server lost QAbstractSocket::HostNotFoundError Aug 22 21:27:17 tjmaciei-mobl5 kwin_x11[3376]: kwin_core: XCB error: 3 (BadWindow), sequence: 41165, resource id: 29363347, major code: 129 (SHAPE), minor code:> journalctl does not make it easy to show extra fields, but it's there and can be retrieved with -o verbose. [ChangeLog][QtCore][Logging] The Qt logging framework (qDebug/qWarning/etc) will now only send the plain, unformatted message to systemd's journald, if this backend is enabled. The category and other fields are sent via metadata to journald, so they can be filtered on and retrieved using journalctl. This matches what Qt does for the Apple Logging support and does not apply when Qt is using syslog or stderr to communicate with journald. Change-Id: Ifa1111900d6945ea8e05fffd177de8f47d74ba60 Reviewed-by: Kai Köhne <[email protected]>
- Loading branch information