calling c_str() function on string for Logger to work properly