summaryrefslogtreecommitdiffstats
path: root/src/render/renderlogging.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-04-22 11:24:48 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-22 13:27:52 +0200
commit1fc89dedb83fd6f906f149538c1756755c514b69 (patch)
treee7f4d73559fcc43730d1ffe8e9d3286c1eb5a467 /src/render/renderlogging.cpp
parent0b081506b61239f54c994fe5932acca26f94f12a (diff)
Categorized logging in Renderer
Logging categories in Renderer : -Backend -Frontend -Framegraph -Io -Jobs Also cleaned up things here and there while going over various classes. Change-Id: I8bf1da0769c764621236dc45e954d193c768e2af Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/renderlogging.cpp')
-rw-r--r--src/render/renderlogging.cpp60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/render/renderlogging.cpp b/src/render/renderlogging.cpp
new file mode 100644
index 000000000..889a14e18
--- /dev/null
+++ b/src/render/renderlogging.cpp
@@ -0,0 +1,60 @@
+/****************************************************************************
+**
+** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the Qt3D module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#include "renderlogging.h"
+
+QT_BEGIN_NAMESPACE
+
+namespace Qt3D {
+
+namespace Render {
+
+Q_LOGGING_CATEGORY(Backend, "Qt3D.Render.Backend")
+Q_LOGGING_CATEGORY(Frontend, "Qt3D.Render.Frontend")
+Q_LOGGING_CATEGORY(Io, "Qt3D.Render.IO")
+Q_LOGGING_CATEGORY(Jobs, "Qt3D.Render.Jobs")
+Q_LOGGING_CATEGORY(FrameGraph, "Qt3D.Render.FrameGraph")
+
+} // Render
+
+} // Qt3D
+
+QT_END_NAMESPACE