File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ struct daily_filename_format_calculator {
6262 * Rotating file sink based on date.
6363 * If truncate != false , the created file will be truncated.
6464 * If max_files > 0, retain only the last max_files and delete previous.
65+ * If max_files > 0, retain only the last max_files and delete previous.
66+ * Note that old log files from previous executions will not be deleted by this class,
67+ * rotation and deletion is only applied while the program is running.
6568 */
6669template <typename Mutex, typename FileNameCalc = daily_filename_calculator>
6770class daily_file_sink final : public base_sink<Mutex> {
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ struct hourly_filename_calculator {
3939 * Rotating file sink based on time.
4040 * If truncate != false , the created file will be truncated.
4141 * If max_files > 0, retain only the last max_files and delete previous.
42+ * Note that old log files from previous executions will not be deleted by this class,
43+ * rotation and deletion is only applied while the program is running.
4244 */
4345template <typename Mutex, typename FileNameCalc = hourly_filename_calculator>
4446class hourly_file_sink final : public base_sink<Mutex> {
You can’t perform that action at this time.
0 commit comments