[jboss-jira] [JBoss JIRA] (WFCORE-113) Add suffix option to size-rotating-file-handler

James Perkins (JIRA) issues at jboss.org
Wed Sep 17 18:10:02 EDT 2014


James Perkins created WFCORE-113:
------------------------------------

             Summary: Add suffix option to size-rotating-file-handler
                 Key: WFCORE-113
                 URL: https://issues.jboss.org/browse/WFCORE-113
             Project: WildFly Core
          Issue Type: Feature Request
          Components: Logging
            Reporter: James Perkins
            Assignee: James Perkins
            Priority: Minor


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:
{code}
server.log becomes server.log.1
server.log.1 becomes server.log.2
server.log.2 becomes server.log.3
etc...
{code}
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 :
{code}
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
{code}
1908857 2013-04-03 17:40 server.log



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jboss-jira mailing list