aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-12-22 18:16:21 -0300
committerflow <flowlnlnln@gmail.com>2022-12-22 19:18:16 -0300
commitee3e65d759da95aa524aad76c2a190792f716560 (patch)
treed64c7c2ae6e5a9b8c72e0f0d903e8693fc75ccba
parentc85867395d310fa14a48f60eec17416b41fb486b (diff)
downloadPrismLauncher-ee3e65d759da95aa524aad76c2a190792f716560.tar.gz
PrismLauncher-ee3e65d759da95aa524aad76c2a190792f716560.tar.bz2
PrismLauncher-ee3e65d759da95aa524aad76c2a190792f716560.zip
feat(docs): add note about logging env variables in man page
Signed-off-by: flow <flowlnlnln@gmail.com>
-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*