gst_debug_add_log_function for python bindings [gst 0.10]

Sebastian Dröge sebastian at centricular.com
Sat Mar 1 06:58:13 PST 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140301/371045db/attachment.pgp>


More information about the gstreamer-devel mailing list