如何在jetty请求日志中添加毫秒字段?

时间:2016-12-16 02:38:26

标签: java http logging request jetty

jetty的请求日志中的默认时间戳仅支持第二级。 如何在毫秒级别记录请求的到达时间?

1 个答案:

答案 0 :(得分:2)

根据Jetty Administration Guide - Chapter 11. Jetty Logging,它可以使用各种日志库。您必须包含有关Jetty配置的详细信息。

如果使用config.baseUrl = http://example.com/ 进行设置,则可以按照以下方式设置模式:How to configure GlassFish logging to show milliseconds in timestamps

相关问题