Module log

Source

Structs§

DebugCategory
This is the struct that describes the categories. Once initialized with GST_DEBUG_CATEGORY_INIT, its values can’t be changed anymore.
DebugCategoryLogger
DebugLogFunction
DebugMessage
LoggedObject

Statics§

CAT_BUFFER
CAT_BUFFER_LIST
CAT_BUS
CAT_CALL_TRACE
CAT_CAPS
CAT_CLOCK
CAT_CONTEXT
CAT_DEFAULT
CAT_ELEMENT_PADS
CAT_ERROR_SYSTEM
CAT_EVENT
CAT_GST_INIT
CAT_LOCKING
CAT_MEMORY
CAT_MESSAGE
CAT_META
CAT_NEGOTIATION
CAT_PADS
CAT_PARAMS
CAT_PARENTAGE
CAT_PERFORMANCE
CAT_PIPELINE
CAT_PLUGIN_INFO
CAT_PLUGIN_LOADING
CAT_PROBE
CAT_PROPERTIES
CAT_QOS
CAT_REFCOUNTING
CAT_REGISTRY
CAT_RUST
CAT_SCHEDULING
CAT_SIGNAL
CAT_STATES

Functions§

add_log_function
add_ring_buffer_logger
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.
get_default_threshold
Returns the default threshold that is used for new categories.
get_stack_trace
flags
is_active
Checks if debugging output is activated.
is_colored
Checks if the debugging output should be colored.
print_stack_trace
If libunwind, glibc backtrace or DbgHelp are present a stack trace is printed.
remove_default_log_function
remove_log_function
remove_ring_buffer_logger
Removes any previously added ring buffer logger with [debug_add_ring_buffer_logger()][crate::debug_add_ring_buffer_logger()].
ring_buffer_logger_get_logs
Fetches the current logs per thread from the ring buffer logger. See [debug_add_ring_buffer_logger()][crate::debug_add_ring_buffer_logger()] for details.
set_active
If activated, debugging messages are sent to the debugging handlers. It makes sense to deactivate it for speed issues.
set_colored
Sets or unsets the use of coloured debugging output. Same as gst_debug_set_color_mode () with the argument being being GST_DEBUG_COLOR_MODE_ON or GST_DEBUG_COLOR_MODE_OFF.
set_default_threshold
Sets the default threshold to the given level and updates all categories to use this threshold.
set_threshold_for_name
Sets all categories which match the given glob style pattern to the given level.
set_threshold_from_string
Sets the debug logging wanted in the same form as with the GST_DEBUG environment variable. You can use wildcards such as *, but note that the order matters when you use wild cards, e.g. foosrc:6,*src:3,*:2 sets everything to log level 2.
unset_threshold_for_name
Resets all categories with the given name back to the default level.