aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsloggingutils_p.h
diff options
context:
space:
mode:
authorSami Shalayel <[email protected]>2024-10-22 14:54:08 +0200
committerSami Shalayel <[email protected]>2024-10-29 13:00:19 +0100
commit282add1abf18171ea6d24777b928b900e672111d (patch)
tree16664f8c7e1b266685091c737a990ce1bc88b011 /src/qmlcompiler/qqmljsloggingutils_p.h
parent49eacf98d5e8857282735dc4356f20de8302908c (diff)
qmllint: allow plugins to set default category level
Add a defaultLevel value to the .json file shipped with the plugins that allow plugins to set the default level of their categories. Change-Id: I4a13366ce705ba104414b41e729d12769ab83821 Reviewed-by: Olivier De Cannière <[email protected]>
Diffstat (limited to 'src/qmlcompiler/qqmljsloggingutils_p.h')
-rw-r--r--src/qmlcompiler/qqmljsloggingutils_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljsloggingutils_p.h b/src/qmlcompiler/qqmljsloggingutils_p.h
index e3d2dcb1f2..8623e1878f 100644
--- a/src/qmlcompiler/qqmljsloggingutils_p.h
+++ b/src/qmlcompiler/qqmljsloggingutils_p.h
@@ -110,6 +110,7 @@ Q_QMLCOMPILER_EXPORT void updateLogLevels(QList<LoggerCategory> &categories,
QCommandLineParser *parser);
Q_QMLCOMPILER_EXPORT QString levelToString(const QQmlJS::LoggerCategory &category);
+Q_QMLCOMPILER_EXPORT bool applyLevelToCategory(const QStringView level, LoggerCategory &category);
} // namespace LoggingUtils
} // namespace QQmlJS