From 6a8fc3f5e38f93c36d18ad8407d4f3f345d893db Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Dec 2013 19:04:30 +0100 Subject: msg: change --msglevel, reduce legacy glue Basically, reimplement --msglevel. Instead of making the new msg code use the legacy code, make the legacy code use the reimplemented functionality. The handling of the deprecated --identify switch changes. It temporarily stops working; this will be fixed in later commits. The actual sub-options syntax (like --msglevel-vo=...) goes away, but I bet nobody knew about this or used this anyway. --- DOCS/man/en/changes.rst | 1 + DOCS/man/en/options.rst | 28 ++++++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) (limited to 'DOCS') diff --git a/DOCS/man/en/changes.rst b/DOCS/man/en/changes.rst index e15d6bb87f..0ea78512bd 100644 --- a/DOCS/man/en/changes.rst +++ b/DOCS/man/en/changes.rst @@ -179,6 +179,7 @@ Command Line Switches ``-panscanrange`` ``--video-zoom``, ``--video-pan-x/y`` ``-pp ...`` ``'--vf=pp=[...]'`` ``-pphelp`` ``--vf=pp:help`` + ``-identify`` ``--msglevel=identify=trace`` =========================== ======================================== .. note:: diff --git a/DOCS/man/en/options.rst b/DOCS/man/en/options.rst index 9e7f55da2b..8c3e87abc7 100644 --- a/DOCS/man/en/options.rst +++ b/DOCS/man/en/options.rst @@ -1345,7 +1345,9 @@ OPTIONS Control verbosity directly for each module. The ``all`` module changes the verbosity of all the modules not explicitly specified on the command line. - See ``--msglevel=help`` for a list of all modules. + Run mpv with ``--msglevel=all=trace`` to see all messages mpv outputs. You + can use the module names printed in the output (prefixed to each line in + ``[...]``) to limit the output to interesting modules. .. note:: @@ -1356,17 +1358,19 @@ OPTIONS Available levels: - :-1: complete silence - :0: fatal messages only - :1: error messages - :2: warning messages - :3: short hints - :4: informational messages - :5: status messages (default) - :6: verbose messages - :7: debug level 2 - :8: debug level 3 - :9: debug level 4 + :no: complete silence + :fatal: fatal messages only + :error: error messages + :warn: warning messages + :info: informational messages + :status: status messages (default) + :v: verbose messages + :debug: debug messages + :trace: very noisy debug messages + + One special case is the ``identify`` module name. This is silenced by + default, and can be set to ``trace`` level to enable the remains of the + code once enabled with the ``-identify`` option. ``--msgmodule`` Prepend module name in front of each console message. -- cgit v1.2.3