3/31/2024 0 Comments Tumblr shortcut for auto queueNormally users want to write to a log file instead, this is accomplished by fmtlog::setLogFile(filename,truncate). Outputīy default, fmtlog output to stdout. # include "fmt/ranges.h " using namespace fmt::literals logi( "I'd rather be. You might also want to define FMT_HEADER_ONLY if you are using fmtlib in header-only way. Just copy fmtlog.h and fmtlog-inl.h to your project, and define macro FMTLOG_HEADER_ONLY before including fmtlog.h. Log frequency limitation - specific logs can be set a minimum logging interval.Ĭ++17 is required, and fmtlog is dependent on fmtlib, you need to install fmtlib first if you haven't. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |