From 3c4667c862dba05d89d0fd24a198bb49c8c47cb8 Mon Sep 17 00:00:00 2001 From: TheAMM Date: Sat, 16 Dec 2017 10:18:20 +0200 Subject: js: implement mp.msg.trace() To match the new Lua helper introduced in 1afdeee1ad8bca1c703e741002fa3b882d162968 Add documentation for both. --- DOCS/man/javascript.rst | 2 ++ DOCS/man/lua.rst | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'DOCS/man') diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst index 419f473e2c..2ebdb15896 100644 --- a/DOCS/man/javascript.rst +++ b/DOCS/man/javascript.rst @@ -164,6 +164,8 @@ Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. ``mp.msg.debug(...)`` +``mp.msg.trace(...)`` + ``mp.utils.getcwd()`` (LE) ``mp.utils.readdir(path [, filter])`` (LE) 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. -- cgit v1.2.3