<table><tr><td style="">habacker added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D13732">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D13732#283984" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D13732#283984</a>, <a href="https://phabricator.kde.org/p/bruns/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@bruns</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>Actually, it does. You have to enable logging explicitly for the per default excluded levels:<br />
<tt style="background: #ebebeb; font-size: 13px;">org.kde.attica.debug=true</tt></p>
<p><a href="http://doc.qt.io/qt-5/qloggingcategory.html#configuring-categories" class="remarkup-link" target="_blank" rel="noreferrer">http://doc.qt.io/qt-5/qloggingcategory.html#configuring-categories</a><br />
<a href="http://doc.qt.io/qt-5/qloggingcategory.html#setFilterRules" class="remarkup-link" target="_blank" rel="noreferrer">http://doc.qt.io/qt-5/qloggingcategory.html#setFilterRules</a></p></div>
</blockquote>
<p>Thanks for this pointer. After looking at <a href="http://blog.qt.io/blog/2014/03/11/qt-weekly-1-categorized-logging/" class="remarkup-link" target="_blank" rel="noreferrer">http://blog.qt.io/blog/2014/03/11/qt-weekly-1-categorized-logging/</a>, which shows a an example for an application I got this working.</p>
<blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D13732#283648" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D13732#283648</a>, <a href="https://phabricator.kde.org/p/leinir/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@leinir</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>Straight-up qDebug would cause quite a lot of spam... I'd be much happier if this was done using qCDebug (which is already used in other parts of the code, so just need to include attica_debug.h and swap for qDebug for qCDebug(ATTICA))</p></div>
</blockquote>
<p>Will fix that.</p>
<p>BTW:You are aware, that there are still much usage of qDebug in attica code ?</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">~/src/attica> grep -rn qDebug\(\) | wc -l</pre></div>
<p>82</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R235 Attica</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13732">https://phabricator.kde.org/D13732</a></div></div><br /><div><strong>To: </strong>habacker, leinir<br /><strong>Cc: </strong>bruns, kde-frameworks-devel, michaelh, ngraham<br /></div>