Huge slowdown when specifying `target_file_name` with the same directory as `target`
auto sink = boost::log::add_file_log( boost::log::keywords::auto_flush = true, boost::log::keywords::enable_final_rotation = false, boost::log::keywords::file_name = logDir / (name + “.log”), boost::log::keywords::open_mode = (std::ios::out | std::ios::app), boost::log::keywords::scan_method = boost::log::sinks::file::scan_matching, boost::log::keywords::target = logDir, boost::log::keywords::target_file_name = logDir / (name + “_%N.log”), // Other args ); In my server such sink causes a huge slowdown (15 times less RPS). Here are some […]