moved log.h to log_impl.h