GitHub user hupfdule opened a pull request:

    https://github.com/apache/logging-log4j2/pull/224

    [LOG4J2-2403] Allow zero padding the counter of a RollingFileAppender       

    This patch introduces the possibility to use zero-padding for the counter 
in the RollingFileAppender and therefore fixes the issue LOG4J2-2403.
    
    Incidentally the functionality of zero-padding can be used for any pattern, 
not only the filePattern of the RollingFileAppender. While that may not make 
much sense for data like the logger category, it can be used e.g. for the 
sequence number in log entries.
    
    The patch contains the actual code changes as well as some tests and 
changes to the corresponding documentation.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/hupfdule/logging-log4j2 
LOG4J2-2403_zeroPad_counter_in_pattern

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/logging-log4j2/pull/224.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #224
    
----
commit f173d1aba9dfe4a9f31b75deea2b53bc12c41eeb
Author: Marco Herrn <marco@...>
Date:   2018-10-23T12:44:03Z

    [LOG4J2-2403] Allow zero padding the counter of a RollingFileAppender
    
    - Introduce a pattern for zero-padding (e.g. %03i) in file names
    - This pattern also works for log patterns (e.g. %08sn)

commit 21b6347281bc2e0082ff4a6048f41d6cb80fd52e
Author: Marco Herrn <marco@...>
Date:   2018-10-23T12:45:33Z

    [LOG4J2-2403] Update documentation about zero-padding

commit 3b4aba73ce23249aeda689100618eb1ac6fc01bb
Author: Marco Herrn <marco@...>
Date:   2018-10-24T07:25:00Z

    Separated SequenceNumberPatternConverterTests
    
    - Those tests can not be run sanely in the same test case. Therefore
      they are now split again

----


---

Reply via email to