aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--launcher/Application.cpp1
-rw-r--r--program_info/prismlauncher.6.scd18
2 files changed, 18 insertions, 1 deletions
diff --git a/launcher/Application.cpp b/launcher/Application.cpp
index eef4fd7a..ff34a168 100644
--- a/launcher/Application.cpp
+++ b/launcher/Application.cpp
@@ -425,7 +425,6 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
}
qInstallMessageHandler(appDebugOutput);
- // TODO: Set filter rules based on CLI arguments
qSetMessagePattern(
"%{time process}" " "
"%{if-debug}D%{endif}" "%{if-info}I%{endif}" "%{if-warning}W%{endif}" "%{if-critical}C%{endif}" "%{if-fatal}F%{endif}"
diff --git a/program_info/prismlauncher.6.scd b/program_info/prismlauncher.6.scd
index f979e457..e1ebfff3 100644
--- a/program_info/prismlauncher.6.scd
+++ b/program_info/prismlauncher.6.scd
@@ -41,6 +41,24 @@ Here are the current features of Prism Launcher.
*-a, --profile*=PROFILE
Use the account specified by PROFILE (only valid in combination with --launch).
+# ENVIRONMENT
+
+The behavior of the launcher can be customized by the following environment
+variables, besides other common Qt variables:
+
+*QT_LOGGING_RULES*
+ Specifies which logging categories are shown in the logs. One can
+ enable/disable multiple categories by separating them with a semicolon (;).
+
+ The specific syntax, and alternatives to this setting, can be found at
+ https://doc.qt.io/qt-6/qloggingcategory.html#configuring-categories.
+
+*QT_MESSAGE_PATTERN*
+ Specifies the format in which the console output will be shown.
+
+ Available options, as well as syntax, can be viewed at
+ https://doc.qt.io/qt-6/qtglobal.html#qSetMessagePattern.
+
# EXIT STATUS
*0*