Allow manual rotation of rotating_file_sink (#3269)

* Allow manual rotation of rotating_file_sink

* Rename rotation method

* Attempted fix for tests on Windows

* Apply review mark-ups
This commit is contained in:
hjs-ast
2024-11-28 15:37:29 +00:00
committed by GitHub
parent 15f539685b
commit 951c5b9987
3 changed files with 26 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ public:
const file_event_handlers &event_handlers = {});
static filename_t calc_filename(const filename_t &filename, std::size_t index);
filename_t filename();
void rotate_now();
protected:
void sink_it_(const details::log_msg &msg) override;