diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2013-07-18 15:10:10 +0400 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-07-18 14:30:44 +0200 |
commit | 797fcd1d499348b77b21d4f21414e4898237fa00 (patch) | |
tree | 1cd2bf3e64bea03c5d552bc68d7dd96ae2ab67ce /tools | |
parent | 46106ebe8f3fbe166575639936a8591d279fa746 (diff) |
info: Add debug color mode option
This allows to explicitely set the debug output color
mode to UNIX on every platform, enable it (use platform
default color mode) or enable it.
https://bugzilla.gnome.org/show_bug.cgi?id=674320
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-launch.1.in | 10 | ||||
-rwxr-xr-x | tools/gst-plot-timeline.py | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/tools/gst-launch.1.in b/tools/gst-launch.1.in index 13eadb3fd..aaf29f799 100644 --- a/tools/gst-launch.1.in +++ b/tools/gst-launch.1.in @@ -101,6 +101,16 @@ ANSI escape sequences. Using this option causes \fIGStreamer\fP to print messages without color. Setting the \fBGST_DEBUG_NO_COLOR\fR environment variable will achieve the same thing. .TP 8 +.B \-\-gst\-debug\-color\-mode +\fIGStreamer\fP normally prints debugging messages so that the +messages are color-coded when printed to a terminal that handles +ANSI escape sequences (on *nix), or uses W32 console API to color the +messages printed into a console (on W32). Using this option causes +\fIGStreamer\fP to print messages without color ('off' or 'disable'), +print messages with default colors ('on' or 'auto'), or print messages +using ANSI escape sequences for coloring ('unix'). Setting the +\fBGST_DEBUG_COLOR_MODE\fR environment variable will achieve the same thing. +.TP 8 .B \-\-gst\-debug\-disable Disables debugging. .TP 8 diff --git a/tools/gst-plot-timeline.py b/tools/gst-plot-timeline.py index c2a30b548..e52e26530 100755 --- a/tools/gst-plot-timeline.py +++ b/tools/gst-plot-timeline.py @@ -2,7 +2,7 @@ # # based on plot-timeline.py by Federico Mena-Quintero <federico at ximian dotcom> # example: -# GST_DEBUG_NO_COLOR=1 GST_DEBUG="*:3" gst-launch-1.0 2>debug.log audiotestsrc num-buffers=10 ! audioconvert ! alsasink +# GST_DEBUG_COLOR_MODE=off GST_DEBUG="*:3" gst-launch-1.0 2>debug.log audiotestsrc num-buffers=10 ! audioconvert ! alsasink # gst-plot-timeline.py debug.log --output=debug.png import math @@ -271,7 +271,7 @@ def main(args): return 1 if len(args) != 1: - print 'Please specify only one input filename, which is an debug log taken with "GST_DEBUG_NO_COLOR=1 GST_DEBUG=XXX <application>"' + print 'Please specify only one input filename, which is an debug log taken with "GST_DEBUG_COLOR_MODE=off GST_DEBUG=XXX <application>"' return 1 in_filename = args[0] |