【问题标题】:Play 2.5 netty access logs播放2.5 netty访问日志
【发布时间】:2016-06-06 10:53:23
【问题描述】:

我正在升级播放应用程序以播放 2.5.3。需要通过netty访问日志。我们已经有每个答案的广告Advanced HTTP server configurations in Play 2.3 的配置现在不起作用。在 application.conf 文件中将 log.wire 属性设置为 true(如 https://www.playframework.com/documentation/2.5.x/ProductionConfiguration 中所述)效果不佳。 2.5.3 play应用有没有其他方法可以开启访问日志?

【问题讨论】:

    标签: playframework netty playframework-2.5


    【解决方案1】:

    配置名称好像变了,现在是play.server.netty.log.wire

    【讨论】:

      【解决方案2】:

      @vdebergue:是的,没错。 logback.xml 中的记录器名称也已更改。

      <logger name="io.netty.handler" level="DEBUG" additivity="false">
              <appender-ref ref="ACCESS_FILE"/>
       </logger>
      

      这个问题的答案在https://github.com/playframework/playframework/issues/6218

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-01-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多