Menu

rotating directories

2009-10-10
2013-06-03
  • Juan Pablo Lorenzetti

    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!

     
  • Andrey Semashev

    Andrey Semashev - 2009-10-11

    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.

     

Log in to post a comment.