记录对底层子系统请求的总响应时间的访问日志模式是什么?
<subsystem xmlns="urn:jboss:domain:undertow:7.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true"/>
<host name="default-host" alias="localhost">
<access-log prefix="access" pattern="%h %t %U%q %m %s %b %T"/> <!-- use-server-log="true" -->
<location name="/" handler="welcome-content"/>
<http-invoker security-realm="ApplicationRealm"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
</subsystem>%T在日志中只记录了一个'-‘。请帮帮忙。
发布于 2018-11-01 19:35:59
Here我发现了以下提示:
处理请求所用的
时间(秒)。除非record-request-start-time设置为true,否则它不会工作,请参阅上面的%D。
还有一个如何配置它的链接。record-request-start-time
发布于 2021-12-06 10:11:29
如果您使用Spring Boot启动undertow,则属性为
server.undertow.options.server.record-request-start-time=true
server.undertow.accesslog.pattern=[...] %Thttps://stackoverflow.com/questions/53098102
复制相似问题