WebSphere Liberty 配置文件日志

WebSphere Liberty profile logs

我无法在 WLP v8.5.5.1 中找到显示客户端发起的请求 URL 和请求方法的日志文件。 我们有一堆由顾问制作的 REST 服务 (HTTPS),但在 usr/servers/[apps]/logs 中我找不到任何请求记录(有一堆日志文件,如 message.log, console.log, etc)。

message.log 是 WebSphere Liberty 的主要日志文件。如果你想记录所有的 http 请求,你必须启用它,将以下内容添加到 server.xml 文件

<httpAccessLogging id="accessLogging"/>
<httpEndpoint id="defaulHttpEndpoint" accessLoggingRef="accessLogging"/>

有关更多详细信息和选项,请查看:HTTP access log settings