Added input plugins logging category

This commit is contained in:
Atlante45 2015-11-06 16:45:23 -08:00
parent 0a65bb145b
commit d95709ee73
4 changed files with 34 additions and 5 deletions

View file

@ -0,0 +1,14 @@
//
// InputPluginsLogging.cpp
//
//
// Created by Clement on 11/6/15.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "InputPluginsLogging.h"
Q_LOGGING_CATEGORY(inputplugins, "hifi.inputplugins")

View file

@ -0,0 +1,18 @@
//
// InputPluginsLogging.h
//
//
// Created by Clement on 11/6/15.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_InputPluginsLogging_h
#define hifi_InputPluginsLogging_h
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(inputplugins)
#endif // hifi_InputPluginsLogging_h

View file

@ -19,11 +19,6 @@
#include <QtCore/QSysInfo>
#include <QtGlobal>
// TODO: This should not be here
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(inputplugins)
Q_LOGGING_CATEGORY(inputplugins, "hifi.inputplugins")
#include <controllers/UserInputMapper.h>
#include <GLMHelpers.h>
#include <NumericalConstants.h>

View file

@ -16,6 +16,8 @@
#include <QtCore/QDebug>
#include <QtCore/QLibrary>
#include "InputPluginsLogging.h"
using Library = std::unique_ptr<QLibrary>;
static Library SIXENSE;