【问题标题】:WebSphere Liberty profile logsWebSphere Liberty 配置文件日志
【发布时间】:2016-03-03 11:46:28
【问题描述】:

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

【问题讨论】:

    标签: websphere websphere-liberty


    【解决方案1】:

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

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

    更多详情和选项请查看:HTTP access log settings

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多