move log.cpp to log directory