KQuickCharts

Logging.qml
1/*
2 * SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6
7import QtQuick 2.12
8
9pragma Singleton;
10
11QtObject {
12 id: log
13
14 property LoggingCategory generalCategory: LoggingCategory {
15 name: "kf.quickcharts.general"
16 defaultLogLevel: LoggingCategory.Warning
17 }
18
19 property LoggingCategory deprecatedCategory: LoggingCategory {
20 name: "kf.quickcharts.deprecated"
21 defaultLogLevel: LoggingCategory.Warning
22 }
23
24 function deprecated(item, entry, since, message) {
25 console.warn(log.deprecatedCategory, "%1::%2 is deprecated (since %3): %4".arg(item).arg(entry).arg(since).arg(message))
26 }
27}
QString name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.