From 10dd120baa00991934e5efa807fa1c230a443401 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 4 Oct 2017 22:08:19 +0200 Subject: msg: make --msg-level affect --log-file too But --msg-level can only raise the log level used for --log-file, because the original idea with --log-file was that it'd log verbose messages to disk even if terminal logging is lower than -v or fully disabled. --- DOCS/man/options.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'DOCS/man') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 85b5418323..8b1bc8c3d8 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -403,8 +403,9 @@ Program Behavior ``--log-file=`` Opens the given path for writing, and print log messages to it. Existing - files will be truncated. The log level always corresponds to ``-v``, - regardless of terminal verbosity levels. + files will be truncated. The log level is at least ``-v``, but can be + raised via ``--msg-level`` (the option cannot lower it below the forced + minimum log level). ``--config-dir=`` Force a different configuration directory. If this is set, the given @@ -3380,6 +3381,8 @@ Terminal can use the module names printed in the output (prefixed to each line in ``[...]``) to limit the output to interesting modules. + This also affects ``--log-file``, and in certain cases libmpv API logging. + .. note:: Some messages are printed before the command line is parsed and are -- cgit v1.2.3