From 96f7c96da02c235c0f4511f30ea81c45933bf881 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 26 Jan 2015 11:31:02 +0100 Subject: msg: add --log-file option This allows getting the log at all with --no-terminal and without having to retrieve log messages manually with the client API. The log level is hardcoded to -v. A higher log level would lead to too much log output (huge file sizes and latency issues due to waiting on the disk), and isn't too useful in general anyway. For debugging, the terminal can be used instead. --- options/options.c | 1 + 1 file changed, 1 insertion(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 1748b3293c..1541f6f323 100644 --- a/options/options.c +++ b/options/options.c @@ -109,6 +109,7 @@ const m_option_t mp_opts[] = { .type = &m_option_type_msglevels), OPT_STRING("dump-stats", dump_stats, CONF_GLOBAL | CONF_PRE_PARSE), OPT_FLAG("msg-color", msg_color, CONF_GLOBAL | CONF_PRE_PARSE), + OPT_STRING("log-file", log_file, CONF_GLOBAL | CONF_PRE_PARSE), OPT_FLAG("msg-module", msg_module, CONF_GLOBAL), OPT_FLAG("msg-time", msg_time, CONF_GLOBAL), #ifdef _WIN32 -- cgit v1.2.3