Albert
Loading...
Searching...
No Matches
logging.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2024 Manuel Schneider
2
// SPDX-License-Identifier: MIT
3
4
#pragma once
5
#include <QLoggingCategory>
6
7
Q_DECLARE_LOGGING_CATEGORY(AlbertLoggingCategory)
8
9
11
#define ALBERT_LOGGING_CATEGORY(name) Q_LOGGING_CATEGORY(AlbertLoggingCategory, "albert." name)
12
14
#define DEBG qCDebug(AlbertLoggingCategory,).noquote()
15
17
#define INFO qCInfo(AlbertLoggingCategory,).noquote()
18
20
#define WARN qCWarning(AlbertLoggingCategory,).noquote()
21
23
#define CRIT qCCritical(AlbertLoggingCategory,).noquote()
24
25
#define cred "\x1b[31m"
26
#define cgreen "\x1b[32m"
27
#define cyellow "\x1b[33m"
28
#define cblue "\x1b[34m"
29
#define cmagenta "\x1b[35m"
30
#define ccyan "\x1b[36m"
31
#define creset "\x1b[0m"
workspace
albert
include
albert
logging.h
Generated by
1.9.8