Closed rainman110 closed 10 months ago
In GitLab by @mariusalexander on Aug 23, 2022, 07:27
created branch 25-consider-using-noqoute-by-default
to address this issue
In GitLab by @mariusalexander on Sep 26, 2022, 08:35
mentioned in commit cb1217ccf108535db71f8fc0ba31771fce0bac3b
In GitLab by @mariusalexander on Feb 10, 2022, 11:36
What is the purpose of the change?
The logging system formats variables depending on its type. However when printing
QStrings
/QByteArrays
andQChar
additional qoutes are displayed, which may hinder readability of info and logging statements.Consider the following code snippet:
The ouput will look like this:
The Logging system however implements a method called noquote() which will log a better formatted string (without quotes):
My proposal is to set this property globally. If a user really wants to use qoutes when logging the following code can be used regardless:
(as a side note:
nospace()
works similar and will not print addition spaces for each input however this may not be desireable globally)Which tasks have to be performed?
noquote
option globallyGtLogging::qoute(const QString&)
which may be used to return an Object with qoutes:Instead of writing:
to print
one may use the helper function to print the same output:
Are there any acceptance criteria to check?