Is it possible to have rotating directories the same way we have rotating files, just like rsyslog is able to do if i specify the log file name pattern along with a directory pattern so, for example, the directories in which the log files are kept can also rotate from month to month or whatever according to the pattern ?? in other words, is it possible to do something like logging::keywords::file_name = log_dir + "/%Y%m/tol%Y%m%d%H%M%S.log" ??
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No, this is not possible. The placeholders will only be expanded for file names, not for directories. Otherwise file rotation would get a lot more complicated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to have rotating directories the same way we have rotating files, just like rsyslog is able to do if i specify the log file name pattern along with a directory pattern so, for example, the directories in which the log files are kept can also rotate from month to month or whatever according to the pattern ?? in other words, is it possible to do something like logging::keywords::file_name = log_dir + "/%Y%m/tol%Y%m%d%H%M%S.log" ??
thanks!
No, this is not possible. The placeholders will only be expanded for file names, not for directories. Otherwise file rotation would get a lot more complicated.