Add simple C logging framework.
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.