[gst-devel] gstinfo and --gst-debug-no-time --gst-debug-no-pid

Andy Wingo wingo at pobox.com
Wed Sep 28 02:24:35 CEST 2005


Hi Stefan,

On Wed, 2005-09-28 at 11:12 +0200, Stefan Kost wrote:
> One idea would be to add more commandline options to control logging in the 
> style of --gst-debug-no-color like  --gst-debug-no-time --gst-debug-no-pid. 
> Additionally there would be new api
> gst_info_{s,g}et_log_time()
> gst_info_{s,g}et_log_pid()

Maybe, but no degree of customization is ever enough... It's much easier
to just override the default debugging handler to some custom format.
For example, compile the attached C file as a shared library and
LD_PRELOAD it.

Alternately have your program install a handler of its own.

I would be against adding more api to change the debugging format, but
that's me.

Regards,
-- 
Andy Wingo
http://wingolog.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shortlog.c
Type: text/x-csrc
Size: 2985 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20050928/b41dc6bd/attachment.c>


More information about the gstreamer-devel mailing list