autosink = std::make_shared<spdlog::sinks::rotating_rotating_file_sink_st>("unique_filename_per_client",".txt", maxsize, max_files, force_flush));automy_logger= std::make_shared<spdlog::logger>("mylogger", sink); Otherwise, If you want to use the regular factory methods (spdlog::...
// process next message in the queue// return true if this thread should still be active (while no terminate msg was received)inline bool spdlog::details::async_log_helper::process_next_msg(log_clock::time_point&last_pop,log_clock::time_point&last_flush){async_msg incoming_async_msg;if...
Set C++20 in CMake when SPDLOG_USE_STD_FORMAT option is turned on #2402. Thanks @cookcocck Fix mingw test #2415. Thanks @neheb Support for any std::chrono::duration type in flush_every(..) #2439. Thanks @LucasChollet Fix implicit casting of level_enum #2443. Thanks @ibmibmibm ...
SPDLOG_INLINE void registry::flush_on(level::level_enum log_level) { std::lock_guard<std::mutex> lock(logger_map_mutex_); for (auto &l : loggers_) { l.second->flush_on(log_level); } flush_level_ = log_level; } SPDLOG_INLINE void registry::flush_every(std::chrono::seconds int...