Skip to content

Add simple C logging framework.

Nathan E. Egge requested to merge unlord/dav1d:logging into master

A pluggable logging framework for printf style logging. You can supply different logging backends by providing a simple logger_function when calling log_init(), e.g.:

log_init(log_fprintf_stdout);

All calls to LOG() are compiled out when ENABLE_LOGGING is not defined, and there is a logging_active() function to use as guard for expensive logging computations.

Merge request reports

Loading