Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-113

Add suffix option to size-rotating-file-handler

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.0.Alpha9
    • None
    • Logging
    • None

      When using size-based log rotation, our tests run with high enough traffic to roll logs often. The file renaming algorithm makes it difficult to investigate or troubleshoot issues while logs are still rolling as the file names change.
      For instance, currently there is only a sequence number appended to the file name and with each new file created, all the files are renamed with a new sequence number.
      For example:

      server.log becomes server.log.1
      server.log.1 becomes server.log.2
      server.log.2 becomes server.log.3
      etc...
      

      What we are asking is that when a server.log has reached its configured size, a suffix shall be appended to server.log and the new filename shall not change. We would like to be able to append a time stamp suffix.
      Example :
      server.log becomes server.log_2013-04-03T17-10-49
      and then a new server.log is started
      If I do an 'ls' on the dir, I would like to see something similar to :

      2003160 2013-04-03 16:40 server.log_2013-04-03T16-40-44
      2009119 2013-04-03 16:50 server.log_2013-04-03T16-50-02
      2000151 2013-04-03 16:58 server.log_2013-04-03T16-58-09
      2011277 2013-04-03 17:10 server.log_2013-04-03T17-10-49
      

      1908857 2013-04-03 17:40 server.log

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: