Skip to content

v1.0.0.4

Choose a tag to compare

@freshthinking freshthinking released this 02 Oct 15:20
· 75 commits to main since this release
  • Fix critical DailyFileSink bug: prevent file overwrites on program restart
    • Remove current_day_index_ member to eliminate restart index reset issue
    • Add rotate_files_for_date() helper function to properly rotate existing files
    • Implement startup rotation check in constructor to handle old log files
    • Fix max_files enforcement to prevent creating files beyond the limit
    • Support max_file_size=0 to disable size-based rotation
    • Proper handling of dated files as index 0 with indexed files starting from _001
  • Add comprehensive unit tests for DailyFileSink rotation scenarios
    • Test size rotation with max_files limit enforcement
    • Test restart scenarios with old files from previous days
    • Test restart with existing rotated files to prevent overwrites