aboutsummaryrefslogtreecommitdiff
path: root/launcher/net/Logging.cpp
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-05-12 09:47:19 +0200
committerGitHub <noreply@github.com>2023-05-12 09:47:19 +0200
commitc5aff7cc1ef43a1326bd3ce0c83e29669e2ff43f (patch)
treeb261ced954e5cccc7dd0f27d880689174a692d3b /launcher/net/Logging.cpp
parentce5bb29c442cee3654c5f4287a999d5d6593032f (diff)
parentb16829b0f9a24dba9d4c9582f82affb30a416f1b (diff)
downloadPrismLauncher-c5aff7cc1ef43a1326bd3ce0c83e29669e2ff43f.tar.gz
PrismLauncher-c5aff7cc1ef43a1326bd3ce0c83e29669e2ff43f.tar.bz2
PrismLauncher-c5aff7cc1ef43a1326bd3ce0c83e29669e2ff43f.zip
Merge pull request #961 from Ryex/better-tasks
Diffstat (limited to 'launcher/net/Logging.cpp')
-rw-r--r--launcher/net/Logging.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/launcher/net/Logging.cpp b/launcher/net/Logging.cpp
new file mode 100644
index 00000000..a9b9db7c
--- /dev/null
+++ b/launcher/net/Logging.cpp
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-3.0-only
+/*
+ * Prism Launcher - Minecraft Launcher
+ * Copyright (C) 2023 Rachel Powers <508861+Ryex@users.noreply.github.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
+
+#include "net/Logging.h"
+
+Q_LOGGING_CATEGORY(taskNetLogC, "launcher.task.net")
+Q_LOGGING_CATEGORY(taskDownloadLogC, "launcher.task.net.download")
+Q_LOGGING_CATEGORY(taskUploadLogC, "launcher.task.net.upload")
+Q_LOGGING_CATEGORY(taskMetaCacheLogC, "launcher.task.net.metacache")
+Q_LOGGING_CATEGORY(taskHttpMetaCacheLogC, "launcher.task.net.metacache.http")