File indexing completed on 2024-12-01 11:19:43

0001 // clang-format off
0002 /*
0003  * KDiff3 - Text Diff And Merge Tool
0004  *
0005  * SPDX-FileCopyrightText: 2019-2020 Michael Reeves reeves.87@gmail.com
0006  * SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 // clang-format on
0009 
0010 #include "Logging.h"
0011 
0012 #ifdef NDEBUG
0013 #define logLevel        QtWarningMsg
0014 
0015 #else
0016 #define logLevel         QtInfoMsg
0017 #endif
0018 
0019 Q_LOGGING_CATEGORY(kdiffMain, "org.kde.kdiff3", logLevel)
0020 Q_LOGGING_CATEGORY(kdiffDiffTextWindow, "org.kde.kdiff3.kdifftextwindow", logLevel);
0021 Q_LOGGING_CATEGORY(kdiffFileAccess, "org.kde.kdiff3.fileAccess", logLevel)
0022 //kdiffCore is very noisey if debug is turned on and not really useful unless your making changes in the core data processing.
0023 Q_LOGGING_CATEGORY(kdiffCore, "org.kde.kdiff3.core", QtWarningMsg)
0024 Q_LOGGING_CATEGORY(kdiffGitIgnoreList, "org.kde.kdiff3.gitIgnoreList", logLevel)
0025 Q_LOGGING_CATEGORY(kdiffMergeFileInfo, "org.kde.kdiff3.mergeFileInfo", logLevel)
0026 
0027 #undef logLevel