[GitHub] log4cxx pull request #3: treat "SSSSSS" in SimpleDateFormat as microseconds

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[GitHub] log4cxx pull request #3: treat "SSSSSS" in SimpleDateFormat as microseconds

nturner
GitHub user nturner opened a pull request:

    https://github.com/apache/log4cxx/pull/3

    treat "SSSSSS" in SimpleDateFormat as microseconds

    This patch allows users to choose timestamp precision in a simple
    manner.  The SimpleDateFormat pattern "SSS" will be replaced with the
    fractional second part of the entry's timestamp with millisecond
    precision (as before), and "SSSSSS" with microsecond precision.
   
    Since runs of "S" characters other than 3 or 6 would not render
    correctly (without this patch, "s.SSSS" will render 3 seconds, 123
    milliseconds as "3.0123"), such patterns are passed through verbatim so
    the user can realize there is a problem.
   
    Signed-off-by: Nathaniel W. Turner <[hidden email]>

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

    $ git pull https://github.com/nturner/log4cxx microsecond-format

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

    https://github.com/apache/log4cxx/pull/3.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 #3
   
----
commit 70dcdf673fe05b4e00d67087c69cb84a7281e254
Author: Nathaniel W. Turner <[hidden email]>
Date:   2011-02-28T06:06:01Z

    treat "SSSSSS" in SimpleDateFormat as microseconds
   
    This patch allows users to choose timestamp precision in a simple
    manner.  The SimpleDateFormat pattern "SSS" will be replaced with the
    fractional second part of the entry's timestamp with millisecond
    precision (as before), and "SSSSSS" with microsecond precision.
   
    Since runs of "S" characters other than 3 or 6 would not render
    correctly (without this patch, "s.SSSS" will render 3 seconds, 123
    milliseconds as "3.0123"), such patterns are passed through verbatim so
    the user can realize there is a problem.
   
    Signed-off-by: Nathaniel W. Turner <[hidden email]>

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[GitHub] log4cxx pull request #3: treat "SSSSSS" in SimpleDateFormat as microseconds

nturner
Github user nturner closed the pull request at:

    https://github.com/apache/log4cxx/pull/3


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Loading...