On 2025/09/24 14:25:29 Mark Thomas wrote:
> All,
> 
> You may have seen the request for nanosecond precision in the access 
> log. The Tomcat committers are currently looking at implementing this.
> 
> For 10.1.x onwards, it is relatively simple because nearly all the 
> internal and public APIs for access log timing already use nanoseconds.
> 
> 9.0.x is trickier because all the internal and public APIs for access 
> logs expect timing information in milliseconds. (There was a breaking 
> change in 10.0.x that switched this to nanoseconds.)
> 
> There 3 options.
> 
> 1. Don't implement nanosecond precision for access logs in 9.0.x.
> 
> 2. Back-port the breaking change from 10.1.x to 9.0.x and switch 
> everything to nanoseconds. Any custom code that expects milliseconds 
> will break.
> 
> 3. Back-port a more complex/invasive change which adds nanosecond 
> support but shouldn't (if I got it right) break any custom code that 
> expects milliseconds.
> 
> You can see how complex the changes are in this PR:
> https://github.com/apache/tomcat/pull/901
> 
> Option 2 only requires the first commit. Option 3 requires both.
> 
> The Tomcat committers would appreciate feedback from the user community 
> as to which option they prefer.
> 
> Feedback either here or on the PR is fine.

There is a larger question to this: I do remember that some JVM versions on 
some platforms weren't able to resolve to nanoseconds, even if you have 
requested it. Would this apply to 9 with JVM 8?

Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to