Is there a library for C, providing thread safe (high performance), and structured logging? An example for rust is the Tracing crate for rust (from Tokio). It should support several outputs as well.
You could check clib for a useful package: https://github.com/clibs/clib/wiki/Packages
Everything related to the C programming language.