refactor src/log.h/.c, path.h/.c based on cpplint.py