log: Remove undefined behaviour
log: Document AV_LOG_C usage

And move outside the wrong doxygen group.
log: Do not assume the TERM variable is always set