Skip to main content

set_log_level

Function set_log_level 

Source
pub fn set_log_level(level: LevelFilter)
Expand description

Set the threshold below which FFmpeg’s messages are discarded.

This writes FFmpeg’s own global level (av_log_set_level), which the bridge then enforces: FFmpeg dispatches to an installed callback without checking the level, so the check belongs to whoever replaced the default callback. A message dropped by it is never formatted.

The log backend filters again, so the effective level is the stricter of the two. FFmpeg’s default is LevelFilter::Info.