Menu

#174 Another naming rule for RollingFileappender

future
open
5
2014-08-06
2010-01-26
No

Would it be possible to support another naming rule for the RollingFileAppender other that the native one?

It would be usefull if filename could contains its closing date/time instead of its index, e.g.: dummyFile_20100114_102012.log, dummyFile_20100115_102511.log

Discussion

  • Václav Haisman

    Václav Haisman - 2010-01-27

    Doesn't the DailyRollingFileAppender do that already?

     
  • Václav Haisman

    Václav Haisman - 2010-01-27
    • assigned_to: nobody --> wilx
     
  • Christophe Lherieau

    Not exactly : DailyRolling occurs on day change.
    What would be useful is a kind of mix of DailyRolling (to have the date in filenames) and classinc Rollin : which occurs on file size.
    This would be a Rolling mechanism but with filename including the date instead of the index (1, 2, ...)

     
  • Václav Haisman

    Václav Haisman - 2013-07-14

    Ticket moved from /p/log4cplus/feature-requests/21/

     
  • Václav Haisman

    Václav Haisman - 2013-08-14
    • labels: Interface Improvements (example) --> enhancement
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,3 @@
    -Would it be possible to support another naming rule for the RollingFileAppender other that the native one ?
    +Would it be possible to support another naming rule for the `RollingFileAppender` other that the native one?
    
    -It would be usefull if filename could contains its closing date/time instead of its index :
    -e.g. dummyFile\_20100114\_102012.log, dummyFile\_20100115\_102511.log 
    -
    -BR.
    +It would be usefull if filename could contains its closing date/time instead of its index, e.g.: `dummyFile_20100114_102012.log`, `dummyFile_20100115_102511.log`
    
    • Group: Next_Release --> future
     
  • Garima

    Garima - 2014-08-06

    Changed the naming rule from Test.log.<index_value> to Test_yymmdd_hhmmss.log format to name log files. Now log filenames contain date and time.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.