From 693062a8bfa89d128f037cdb4b524e57239faf0f Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 29 Nov 2024 22:10:23 +0200 Subject: [PATCH] Update cp --- src/sinks/rotating_file_sink.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/sinks/rotating_file_sink.cpp b/src/sinks/rotating_file_sink.cpp index a2b449c0..b6a46ff5 100644 --- a/src/sinks/rotating_file_sink.cpp +++ b/src/sinks/rotating_file_sink.cpp @@ -60,6 +60,11 @@ filename_t rotating_file_sink::filename() { return file_helper_.filename(); } +template +void rotating_file_sink::rotate_now() { + rotate_(); +} + template void rotating_file_sink::sink_it_(const details::log_msg &msg) { memory_buf_t formatted; @@ -135,4 +140,4 @@ bool rotating_file_sink::rename_file_(const filename_t &src_filename, con // template instantiations template class SPDLOG_API spdlog::sinks::rotating_file_sink; -template class SPDLOG_API spdlog::sinks::rotating_file_sink; \ No newline at end of file +template class SPDLOG_API spdlog::sinks::rotating_file_sink;