static std::string createLogFile(std::string suffix, std::ofstream& flog) { std::string filepath = getLogFileNamePath("log_", suffix, ".tsv", true); createTextFile(filepath, flog); Utils::log(Utils::stringf("log file started: %s", filepath.c_str())); flog.exceptions(flog.exceptions() | std::ios::failbit | std::ifstream::badbit); return filepath; }
static std::string createLogFile(const std::string& suffix, std::ofstream& flog) { std::string log_folderpath = common_utils::FileSystem::getLogFolderPath(false); std::string filepath = getLogFileNamePath(log_folderpath, "log_", suffix, ".tsv", true); createTextFile(filepath, flog); Utils::log(Utils::stringf("log file started: %s", filepath.c_str())); flog.exceptions(flog.exceptions() | std::ios::failbit | std::ifstream::badbit); return filepath; }