Enable log auto-flush, this should not really affect performance because by default the log level is warning

This commit is contained in:
Noisyfox 2025-11-08 11:49:54 +08:00
parent bfe4b78b0e
commit 28184a96a1

View file

@ -354,7 +354,8 @@ void set_log_path_and_level(const std::string& file, unsigned int level)
<< expr::format_date_time< boost::posix_time::ptime >("TimeStamp", "%Y-%m-%d %H:%M:%S.%f")
<<"[Thread " << expr::attr<attrs::current_thread_id::value_type>("ThreadID") << "]"
<< ":" << expr::smessage
)
),
keywords::auto_flush = true
);
logging::add_common_attributes();