gst_debug_add_log_function for python bindings [gst 0.10]

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gst_debug_add_log_function for python bindings [gst 0.10]

Lautaro Woites
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?

Thanks a lot!

P.D: I'm using gst 0.10.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_debug_add_log_function for python bindings [gst 0.10]

Sebastian Dröge-3
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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gst_debug_add_log_function for python bindings [gst 0.10]

Lautaro Woites
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 <[hidden email]>:
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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel