Move function prototypes into log.h