diff options
author | TheAMM <the.actual.amm@gmail.com> | 2017-12-16 10:18:20 +0200 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2017-12-16 02:25:24 -0800 |
commit | 3c4667c862dba05d89d0fd24a198bb49c8c47cb8 (patch) | |
tree | 1d272f73d4a86487b87114eb7dc1e3ad010bbfeb /DOCS/man/lua.rst | |
parent | 1afdeee1ad8bca1c703e741002fa3b882d162968 (diff) | |
download | mpv-3c4667c862dba05d89d0fd24a198bb49c8c47cb8.tar.bz2 mpv-3c4667c862dba05d89d0fd24a198bb49c8c47cb8.tar.xz |
js: implement mp.msg.trace()
To match the new Lua helper introduced in
1afdeee1ad8bca1c703e741002fa3b882d162968
Add documentation for both.
Diffstat (limited to 'DOCS/man/lua.rst')
-rw-r--r-- | DOCS/man/lua.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst index 5fe7507049..2e354c282f 100644 --- a/DOCS/man/lua.rst +++ b/DOCS/man/lua.rst @@ -487,16 +487,17 @@ with ``require 'mp.msg'``. ``msg.log(level, ...)`` The level parameter is the message priority. It's a string and one of - ``fatal``, ``error``, ``warn``, ``info``, ``v``, ``debug``. The user's - settings will determine which of these messages will be visible. Normally, - all messages are visible, except ``v`` and ``debug``. + ``fatal``, ``error``, ``warn``, ``info``, ``v``, ``debug``, ``trace``. The + user's settings will determine which of these messages will be + visible. Normally, all messages are visible, except ``v``, ``debug`` and + ``trace``. The parameters after that are all converted to strings. Spaces are inserted to separate multiple parameters. You don't need to add newlines. -``msg.fatal(...)``, ``msg.error(...)``, ``msg.warn(...)``, ``msg.info(...)``, ``msg.verbose(...)``, ``msg.debug(...)`` +``msg.fatal(...)``, ``msg.error(...)``, ``msg.warn(...)``, ``msg.info(...)``, ``msg.verbose(...)``, ``msg.debug(...)``, ``msg.trace(...)`` All of these are shortcuts and equivalent to the corresponding ``msg.log(level, ...)`` call. |