[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4cxx-dev
Subject:    [GitHub] log4cxx pull request #3: treat "SSSSSS" in SimpleDateFormat as microseconds
From:       nturner <git () git ! apache ! org>
Date:       2017-03-28 21:27:20
Message-ID: git-pr-3-log4cxx () git ! apache ! org
[Download RAW message or body]

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 <nate@houseofnate.net>

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 <nate@houseofnate.net>
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 <nate@houseofnate.net>

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic