feat(docs): add note about logging env variables in man page

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-12-22 18:16:21 -03:00
parent c85867395d
commit ee3e65d759
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469
2 changed files with 18 additions and 1 deletions

View File

@ -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}"

View File

@ -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*