WebSphere Liberty概要文件日志

时间:2016-03-03 11:46:29

标签: websphere websphere-liberty

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

1 个答案:

答案 0 :(得分:3)

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

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

有关详情和选项,请查看:HTTP access log settings