IBM Liberty Access日志记录

时间:2013-08-22 15:38:14

标签: ibm-mobilefirst websphere-liberty

Worklight 5.0.5 Liberty 8.5.0.1

我们遇到了一些超时问题,我在自由信息中看到它说你可以用

打开自由访问记录
<httpAccessLogging/>

<httpAccessLogging enabled="true" filePath="e:\\Temp\\http_access.log" />

我已在server.xml中插入了标记,但它没有创建访问日志文件。 我正在寻找的主要是正在进行呼叫的设备的IP地址。 那是我可以找出呼叫是否在某个时间进入服务器..

1 个答案:

答案 0 :(得分:0)

httpAccessLogging基于每个httpEndpoint启用。尝试:

<httpEndpoint id="defaultHttpEndpoint">
  <accessLogging/>
</httpEndpoint>

...或:

<httpEndpoint id="defaultHttpEndpoint" accessLoggingRef="hal"/>
<httpAccessLogging id="hal"/>