<div dir="ltr">Thanks a lot Sebastian i will try to redirect stderr, for now I cannot use gst 1.x.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-01 11:58 GMT-03:00 Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fr, 2014-02-28 at 15:42 -0300, Lautaro Woites wrote:<br>
> Hi people,<br>
><br>
> I'm interested on have the last logs entries for a long running application.<br>
><br>
> I've tried to logrotate the logfile defined by GST_DEBUG_FILE but gstreamer<br>
> fills the file with a lot of garbage after the file is truncated. The<br>
> logfile still has the same size that had before truncate it. After the<br>
> trash that gstreamer writes it continues writing normal log entries.<br>
><br>
> I've seen that I can use gst_debug_add_log_function () but I'm on python<br>
> and seems that this function is not exported by the python's bindings.<br>
><br>
><br>
> Somebody has an approach or workaround for this situation?<br>
<br>
</div></div>You could either use GStreamer 1.x, the pygi based bindings wrap<br>
gst_debug_add_log_function()... or you could wrap your application in<br>
something else that forwards stderr (where the debug logs go) to<br>
rotating log files.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>