I'm working out this in my current project with the aim of using tracing but essentially this would let a use provide a lambda callback and handle getting it into av_log_set_callback. If I get it working in my project I'll aim to make something more generic and PR it if it could be useful for others