Music Hub
..
A session-wide music playback service
logging.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2021-2022 UBports Foundation.
3
*
4
* Contact: Alberto Mardegan <mardy@users.sourceforge.net>
5
*
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU Lesser General Public License version 3,
8
* as published by the Free Software Foundation.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*
18
*/
19
20
#ifndef LOGGING_H
21
#define LOGGING_H
22
23
#include <QLoggingCategory>
24
25
namespace
lomiri
{
26
namespace
MediaHubService {
27
28
// Log returns the lomiri::MediaHubService-wide configured logger instance.
29
// Save to call before/after main.
30
const
QLoggingCategory &
Log
();
31
32
}
// namespace MediaHubService
33
}
// namespace lomiri
34
35
#define MH_TRACE(...) qCDebug(::lomiri::MediaHubService::Log(), __VA_ARGS__)
36
#define MH_DEBUG(...) qCDebug(::lomiri::MediaHubService::Log(), __VA_ARGS__)
37
#define MH_INFO(...) qCInfo(::lomiri::MediaHubService::Log(), __VA_ARGS__)
38
#define MH_WARNING(...) qCWarning(::lomiri::MediaHubService::Log(), __VA_ARGS__)
39
#define MH_ERROR(...) qCCritical(::lomiri::MediaHubService::Log(), __VA_ARGS__)
40
#define MH_FATAL(...) qCCritical(::lomiri::MediaHubService::Log(), __VA_ARGS__)
41
42
#endif
lomiri::MediaHubService::Log
const QLoggingCategory & Log()
Definition:
logging.cpp:27
lomiri
Definition:
dbus_utils.h:24
src
service
logging.h
Generated on Fri Dec 16 2022 11:18:10 for Music Hub by
1.8.17