Function gstreamer::log::add_ring_buffer_logger

source ·
pub fn add_ring_buffer_logger(max_size_per_thread: u32, thread_timeout: u32)
Expand description

Adds a memory ringbuffer based debug logger that stores up to max_size_per_thread bytes of logs per thread and times out threads after thread_timeout seconds of inactivity.

Logs can be fetched with [debug_ring_buffer_logger_get_logs()][crate::debug_ring_buffer_logger_get_logs()] and the logger can be removed again with [debug_remove_ring_buffer_logger()][crate::debug_remove_ring_buffer_logger()]. Only one logger at a time is possible.

§max_size_per_thread

Maximum size of log per thread in bytes

§thread_timeout

Timeout for threads in seconds