-
Let's suppose that I have |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If the https://github.com/gabime/spdlog/blob/v1.9.2/include/spdlog/sinks/basic_file_sink.h#L43-L52 |
Beta Was this translation helpful? Give feedback.
If the
truncate
argument is set totrue
, the log file contents will be truncated on opening.e.g. spdlog::basic_logger_mt("My Logger", "mylog.txt", true);
https://github.com/gabime/spdlog/blob/v1.9.2/include/spdlog/sinks/basic_file_sink.h#L43-L52