modified the lib_log.cpp