Bug 1331005

Summary: Reasonable QT_LOGGING_RULES as default
Product: [Fedora] Fedora Reporter: Jozef Mlich <jmlich83>
Component: qt5-qtbaseAssignee: Than Ngo <than>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jgrulich, jreznik, mkolman, rdieter, rnovacek, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-27 14:03:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
hello_world.qml none

Description Jozef Mlich 2016-04-27 12:42:19 UTC
Created attachment 1151362 [details]
hello_world.qml

Description of problem:
The beginners (and also me) usually starts with console.log("hello world"). In new version of Qt, there was newly introduced QLoggingCategory [1] which allow configuration of verbosity during debugging.

[1] http://doc.qt.io/qt-5/qloggingcategory.html

Reproducer: 
qmlscene hello_world.qml

Expected Result at stdout:
hello log
hello debug

Current result output at stdout is empty.

I suggest to add following configuration into .bash_rc (or /etc/profile) during of installation of qt5-base-devel (or qt5-devel or any other suitable) package:

export "QT_LOGGING_RULES=*=true
qt.*=false"

Comment 1 Rex Dieter 2016-04-27 14:03:40 UTC
see bug #1227295 for some history.

The kde-sig policy decision on distribution default is to show no debug logging via qtlogging.ini : 

[Rules]
*.debug=false

which we know is different from upstream's default of (essentially, I think):
qt.debug=false

You're welcome to start a conversation on 
https://lists.fedoraproject.org/admin/lists/kde.lists.fedoraproject.org/
if you feel like we should consider otherwise.

Comment 2 Jozef Mlich 2016-04-27 14:59:55 UTC
Thank you for explanation and recommendation. I am sorry that I didn't found the ticket previously.