gst_debug_add_log_function for python bindings [gst 0.10]

Lautaro Woites lauchapc87 at gmail.com
Sat Mar 1 09:49:21 PST 2014


Thanks a lot Sebastian i will try to redirect stderr, for now I cannot use
gst 1.x.


2014-03-01 11:58 GMT-03:00 Sebastian Dröge <sebastian at centricular.com>:

> On Fr, 2014-02-28 at 15:42 -0300, Lautaro Woites wrote:
> > Hi people,
> >
> > I'm interested on have the last logs entries for a long running
> application.
> >
> > I've tried to logrotate the logfile defined by GST_DEBUG_FILE but
> gstreamer
> > fills the file with a lot of garbage after the file is truncated. The
> > logfile still has the same size that had before truncate it. After the
> > trash that gstreamer writes it continues writing normal log entries.
> >
> > I've seen that I can use gst_debug_add_log_function () but I'm on python
> > and seems that this function is not exported by the python's bindings.
> >
> >
> > Somebody has an approach or workaround for this situation?
>
> You could either use GStreamer 1.x, the pygi based bindings wrap
> gst_debug_add_log_function()... or you could wrap your application in
> something else that forwards stderr (where the debug logs go) to
> rotating log files.
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140301/365affde/attachment.html>


More information about the gstreamer-devel mailing list