From ee3e65d759da95aa524aad76c2a190792f716560 Mon Sep 17 00:00:00 2001 From: flow Date: Thu, 22 Dec 2022 18:16:21 -0300 Subject: [PATCH] feat(docs): add note about logging env variables in man page Signed-off-by: flow --- launcher/Application.cpp | 1 - program_info/prismlauncher.6.scd | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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*