Skip to content
Discussion options

You must be logged in to vote

Hey,

Unfortunately, implementing this functionality in the current RotatingFileSink is quite complex due to its design. For example, during each rotation, the sink actively renames files, with .1. being the most recent rotated file. This means that:

  • file.log is always the active log.
  • On rotation, file.log becomes file.1.log, file.1.log becomes file.2.log, and so on.

This renaming scheme ensures a consistent order but makes collecting rotated logs separately more challenging, as filenames are altered and context can vary. Additionally, existing features like cleaning old files and recovering indexes (in append mode) further increase the complexity of adding support for saving rotated log…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheMint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants