26 const std::vector<std::string>& file_names =
log_file_names(folder_path, file_name_prefix);
28 if (file_names.size() == 0)
30 std::cerr <<
"WARNING::LOGGER::ENABLELOG\n";
31 std::cerr <<
"\tWARNING: Log facility could not be started due to missing file names." << std::endl;
39 auto file_name = file_names.begin();
40 for (
size_t i = 0; i < file_names.size(); ++i, ++file_name)
42 log_files_.emplace_back(std::ofstream(*file_name +
".txt", std::ofstream::out | std::ofstream::app));
46 std::cerr <<
"WARNING::LOGGER::ENABLELOG\n";
47 std::cerr <<
"\tWARNING: Log facility could not be started for file " + *file_name +
".txt." << std::endl;
99 static_cast<void>(folder_path);
100 static_cast<void>(file_name_prefix);
102 std::cerr <<
"WARNING::LOGGER::LOG_FILENAMES\n";
103 std::cerr <<
"\tWARNING: Log file names where not provided. Did you override `log_file_names()`?" << std::endl;