Add log.h for implementing loglib.