mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-14 01:32:07 +08:00
Add info about max_files in the docstrings of hourly/daily file sinks (#3170)
This commit is contained in:
parent
e01fa1a5fd
commit
15fcde8ee3
@ -59,6 +59,9 @@ struct daily_filename_format_calculator {
|
||||
* Rotating file sink based on date.
|
||||
* If truncate != false , the created file will be truncated.
|
||||
* If max_files > 0, retain only the last max_files and delete previous.
|
||||
* If max_files > 0, retain only the last max_files and delete previous.
|
||||
* Note that old log files from previous executions will not be deleted by this class,
|
||||
* rotation and deletion is only applied while the program is running.
|
||||
*/
|
||||
template <typename Mutex, typename FileNameCalc = daily_filename_calculator>
|
||||
class daily_file_sink final : public base_sink<Mutex> {
|
||||
|
@ -38,6 +38,8 @@ struct hourly_filename_calculator {
|
||||
* Rotating file sink based on time.
|
||||
* If truncate != false , the created file will be truncated.
|
||||
* If max_files > 0, retain only the last max_files and delete previous.
|
||||
* Note that old log files from previous executions will not be deleted by this class,
|
||||
* rotation and deletion is only applied while the program is running.
|
||||
*/
|
||||
template <typename Mutex, typename FileNameCalc = hourly_filename_calculator>
|
||||
class hourly_file_sink final : public base_sink<Mutex> {
|
||||
|
Loading…
Reference in New Issue
Block a user