1// Copyright (C) 2022 The Qt Company Ltd.
2// Copyright (C) 2019 Alexey Edelev <semlanik@gmail.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QTPROTOBUFLOGGING_P_H
6#define QTPROTOBUFLOGGING_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtProtobuf/qtprotobufglobal.h>
20
21#include <QtCore/qloggingcategory.h>
22#include <QtCore/private/qglobal_p.h>
23
24QT_BEGIN_NAMESPACE
25Q_DECLARE_EXPORTED_LOGGING_CATEGORY(Protobuf, Q_PROTOBUF_EXPORT)
26QT_END_NAMESPACE
27
28#define qProtoDebug(...) qCDebug(Protobuf, __VA_ARGS__)
29#define qProtoInfo(...) qCInfo(Protobuf, __VA_ARGS__)
30#define qProtoWarning(...) qCWarning(Protobuf, __VA_ARGS__)
31#define qProtoCritical(...) qCCritical(Protobuf, __VA_ARGS__)
32
33#endif // QTPROTOBUFLOGGING_P_H
34

source code of qtgrpc/src/protobuf/qtprotobuflogging_p.h