> Eg: %{UNIT}T or %D as other options. this is for time taken to server request, but I am speaking about RequestTime, the time request has arrived at. On Tuesday, July 25, 2023 at 03:43:07 PM GMT+3, Joakim Erdfelt <joa...@webtide.com> wrote: Yes, that is the whole goal of DateCache, to avoid causing the GC that Date formatting causes, its resolution is to the second. But, look at the javadoc for CustomRequestLog. You have other format options that might fit your needs instead. Eg: %{UNIT}T or %D as other options. If after reviewing the other options you still want ms support in the %t formatter, open a feature request.https://github.com/eclipse/jetty.project/issues Joakim Erdfelt / joa...@webtide.com
On Tue, Jul 25, 2023 at 7:00 AM jdiso...@yahoo.com <jdiso...@yahoo.com> wrote: Javadoc tells me that format string Must be in a format supported by DateCache.But DateCache produces the same result for request arrived in the same second, comments in DateCache read like "Sub second formatting is not handled.". So I can't use CustomRequestLog to produce milliseconds... On Monday, July 24, 2023 at 05:38:26 PM GMT+3, Joakim Erdfelt <joa...@webtide.com> wrote: You'll need to use the CustomRequestLog class. Know that the EXTENDED_NCSA_FORMAT is a format string that is hard coded to ... %{client}a - %u %t "%r" %s %O "%{Referer}i" "%{User-Agent}i The `%t` is the time/date format.You can specify the syntax for that format, some examples: %{EEE MMM dd HH:mm:ss zzz yyyy}t%{EEE MMM dd HH:mm:ss zzz yyyy|EST}t%{EEE MMM dd HH:mm:ss zzz yyyy|JST|ja}t These are the time/date syntax ...1) specified with default GMT timezone, and default locale - aka TimeZone.getTimeZone("GMT") and Locale.getDefault()2) specified with EST timezone, and default locale - TimeZone.getTimeZone("EST"), and Locale.getDefault()3) specified with JST timezone, and `ja` locale - TimeZone.getTimeZone("JST"), and Locale.forLanguageTag("ja") The default syntax, if unspecified by the `%t` tag is ... dd/MMM/yyyy:HH:mm:ss ZZZ Joakim Erdfelt / joa...@webtide.com On Mon, Jul 24, 2023 at 5:48 AM jdison16--- via jetty-users <jetty-users@eclipse.org> wrote: Hello! I am using AbstractNCSARequestLog with setLogDateFormat("HH:mm:ss,SSS"); to log in NCSA format with milliseconds. Now in recent versions of Jetty this class was deleted with suggestion to use CustomRequestLog with EXTENDED_NCSA_FORMAT. But it logs request time without millis. Is there any simple way to log milliseconds too without writing my own CustomRequestLog with almost the same content (and delete DateCache logic). Thanks in advance!_______________________________________________ jetty-users mailing list jetty-users@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users
_______________________________________________ jetty-users mailing list jetty-users@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users