[jboss-jira] [JBoss JIRA] (JBLOGGING-77) FileHandler which rolls the file when a system property changes.

Ondrej Zizka (Commented) (JIRA) jira-events at lists.jboss.org
Mon Jan 9 13:36:09 EST 2012


    [ https://issues.jboss.org/browse/JBLOGGING-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654668#comment-12654668 ] 

Ondrej Zizka commented on JBLOGGING-77:
---------------------------------------

This could be it: https://github.com/OndraZizka/jboss-as/compare/TS-logPerTest
(not tested)
                
> FileHandler which rolls the file when a system property changes.
> ----------------------------------------------------------------
>
>                 Key: JBLOGGING-77
>                 URL: https://issues.jboss.org/browse/JBLOGGING-77
>             Project: JBoss Logging
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: jboss-logging-jdk
>            Reporter: Ondrej Zizka
>            Assignee: David Lloyd
>
> I'd make use of a FileHandler which would roll the file when a system property changes.
> For use case, see ARQ-710.
> The handler would have a property called, say,  fileNameFormat, which would be a string like:
> {code}
> my-server-log-${arq.currentTest}-${arq.containerId}.txt
> {code}
> The handler would replace the string every time and compare with previous; when different, it would roll the file.
> It would not be super efficient but good enough for the purposes of testing.
> (It would not be the default handler, only configured on demand.)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list