Added a  .c_str() to log.cpp