From patchwork Tue Apr 3 08:30:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Rapp X-Patchwork-Id: 8300 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.1.70 with SMTP id c67csp3423112jad; Tue, 3 Apr 2018 01:30:45 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/o4wm/dwOF4sQJkXtgOeuKoNYTml+sMfe8ZO8mlkDMg4W8Pip6qRC/wF+MKxoNqGCBLTW1 X-Received: by 10.28.92.211 with SMTP id q202mr3517979wmb.131.1522744245841; Tue, 03 Apr 2018 01:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522744245; cv=none; d=google.com; s=arc-20160816; b=ooVPhmpfQgg1bPJe5RyLn0DpqIJUnp+Gtr1of9tajdXj0Ob8joHHhnbxXorf6jXRiJ ppmiTUTRTpMwQdGzLxfJBxYEk5e0YZ2L677qZT4HRsFCNWh6NYvJPqXqq50f3bhlUfgP ukdo+Tkl/6iE6iB0fLQGhMMhmuQtYYoVA1reZe3yeiW2r3JwWQNC/0waEX9c+/4b6kr9 5+HMAsoQZwF6kYYOPfJGB2GEmpQ77ndV7ZrmENE8Qriax/Gqux4Rc2/pSODu9ym+fYv9 NurHDJX5gd3Q1olLepDJuzGsCOPr/lzw4OuVznxAVFs65z4Tdjj0XrLEa78KkkeFkj5e 4lwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=+QvLb7lJo6YWwq0elljLddxB24MQWx7/kbQL4fYiLI8=; b=RNCEGJ+oqO+cTensGd7zIrJtGzOisOjtsRWCN9rR4xRi/iOc+IL/uoeQ9nPDEWkeb6 owsuFan0LtOnRmePR0d1Yymj74daij1JUiNTN7gKkFD8K/spb4VO2SgqK0PTbFOpbM3b tNq/ENmejtJYbIs8YUUPJYNGVxOoKvdK0jvb8r1mo+oRjRGsHhNj02YU2Qx+HfkVOCuH 2iAg8s5AeDTDu2aVYn0Dz9YHvVw8paXPdI9gcBKgbZQTfhImhe3TyAKSi3xgeHtWtoa+ y0k5B+KhKBuvO5rOv9eYT6WoruBAZ+sAlarcDUdYo/iPZxfgiXJhm08wJE2pPjj58eNs CWqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r68si25611wmb.137.2018.04.03.01.30.45; Tue, 03 Apr 2018 01:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8AC8D689A69; Tue, 3 Apr 2018 11:30:23 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mx02.mail.netstorage.at (mx02.mail.netstorage.at [89.207.146.155]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 973CD680764 for ; Tue, 3 Apr 2018 11:30:17 +0300 (EEST) Received: from p1002.netstorage.at (p1002.netstorage.at [89.207.146.186]) by mx02.mail.netstorage.at (Postfix) with ESMTPS id 2ED07A0881 for ; Tue, 3 Apr 2018 10:30:36 +0200 (CEST) Received: from mailix (noaport.de [46.237.252.213]) by p1002.netstorage.at (Postfix) with ESMTPA id C06FD81A5F for ; Tue, 3 Apr 2018 10:30:35 +0200 (CEST) Received: from frogstar-a.kuhnle.local (frogstar-a.kuhnle.local [192.168.0.26]) by mailix with ESMTPA ; Tue, 3 Apr 2018 10:30:36 +0200 From: Tobias Rapp To: ffmpeg-devel@ffmpeg.org Date: Tue, 3 Apr 2018 10:30:35 +0200 Message-Id: <1522744235-15519-1-git-send-email-t.rapp@noa-archive.com> X-Mailer: git-send-email 2.7.4 X-PPP-Message-ID: <20180403083036.7312.57044@p1002.netstorage.at> X-PPP-Vhost: noa-archive.com Subject: [FFmpeg-devel] [PATCH] doc: update loglevel option documentation X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Updates documentation after the changes to loglevel flag prefix parsing in 4b736bc921ed96ad6d312ce0cbe0de29b9e3fe81. Signed-off-by: Tobias Rapp --- doc/fftools-common-opts.texi | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/doc/fftools-common-opts.texi b/doc/fftools-common-opts.texi index 185ec21..d4ee19d 100644 --- a/doc/fftools-common-opts.texi +++ b/doc/fftools-common-opts.texi @@ -168,14 +168,24 @@ The returned list cannot be assumed to be always complete. ffmpeg -sinks pulse,server=192.168.0.4 @end example -@item -loglevel [repeat+]@var{loglevel} | -v [repeat+]@var{loglevel} -Set the logging level used by the library. -Adding "repeat+" indicates that repeated log output should not be compressed -to the first line and the "Last message repeated n times" line will be -omitted. "repeat" can also be used alone. -If "repeat" is used alone, and with no prior loglevel set, the default -loglevel will be used. If multiple loglevel parameters are given, using -'repeat' will not change the loglevel. +@item -loglevel [@var{flags}+]@var{loglevel} | -v [@var{flags}+]@var{loglevel} +Set logging level and flags used by the library. + +The optional @var{flags} prefix can consist of the following values: +@table @samp +@item repeat +Indicates that repeated log output should not be compressed to the first line +and the "Last message repeated n times" line will be omitted. +@item level +Indicates that log output should add a @code{[level]} prefix to each message +line. This can be used as an alternative to log coloring, e.g. when dumping the +log to file. +@end table +Flags can also be used alone by adding a '+'/'-' prefix to set/reset a +single flag without affecting other flags or changing the log level. When +setting both, flags and level, a '+' separator is expected between last +flag and before level. + @var{loglevel} is a string or a number containing one of the following values: @table @samp @item quiet, -8