You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/03/03 01:20:02 UTC

[Bug 64190] New: OneLineFormatter always add milliseconds at the end of timestamp

https://bz.apache.org/bugzilla/show_bug.cgi?id=64190

            Bug ID: 64190
           Summary: OneLineFormatter always add milliseconds at the end of
                    timestamp
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: JULI
          Assignee: dev@tomcat.apache.org
          Reporter: thienbui797@gmail.com
  Target Milestone: ----

I have looked into the code.
OneLineFormatter always add miliseconds to the end of log timestamp which is
very inconvenient since ISO 8601 has timezone at the end.
I ended up with timestamp like this:
2020-03-03T12:12:06.000000+1100.071

I want to ether have the milliseconds in with solution described in
https://bz.apache.org/bugzilla/show_bug.cgi?id=59871#c11 or having a configure
property to let me stop adding miliseconds to the end of the timestamp

I can help out with the fix if the developer team doesn't have resource to fix
this. Just need to tell me which direction is prefered

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64190] OneLineFormatter always add milliseconds at the end of timestamp

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64190

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
I have a patch ready that does this.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64190] OneLineFormatter always add milliseconds at the end of timestamp

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64190

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
Fixed in:
- master for 10.0.0-M2 onwards
- 9.0.x for 9.0.32 onwards
- 8.5.x for 8.5.52 onwards
- 7.0.x for 7.0.101 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64190] OneLineFormatter always add milliseconds at the end of timestamp

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64190

Christopher Schultz <ch...@christopherschultz.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
This might be difficult, due to the way the OneLineFormatter caches DateFormat
objects and only updates the "time" every 1000ms.

Whatever solution you come up with needs to maintain the existing performance
characteristics of the OneLineFormatter.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org