【问题标题】:Jetty Runner IDEA Community LoggingJetty Runner IDEA 社区日志记录
【发布时间】:2018-12-06 20:56:06
【问题描述】:

我正在使用 Intellij IDEA Community 开展一个项目,因此我正在使用 Jetty Runner 在 localhost 中部署我的 Web 应用程序,一切正常,但我想配置有关 Jetty 的日志,在服务器启动时我看到了这种日志:

14:50:20.516 [main] DEBUG o.eclipse.jetty.webapp.WebAppContext - isSystemResource==false org.springframework.expression.spel.ast.OpDec jar:file:/C:/Mario/development/spring/spring5/workspace/springsecurity/chapter02/chapter02.00-calendar/build/exploded/WEB-INF/lib/spring-expression-4.3.11.RELEASE.jar!/org/springframework/expression/spel/ast/OpDec.class 14:50:20.516 [main] DEBUG o.e.jetty.webapp.WebAppClassLoader - WAP webapp loaded class org.springframework.expression.spel.ast.OpDec 14:50:20.516 [main] DEBUG o.eclipse.jetty.webapp.WebAppContext - isSystemResource==false org.springframework.expression.spel.ast.OperatorNot jar:file:/C:/Mario/development/spring/spring5/workspace/springsecurity/chapter02/chapter02.00-calendar/build/exploded/WEB-INF/lib/spring-expression-4.3.11.RELEASE.jar!/org/springframework/expression/spel/ast/OperatorNot.class 14:50:20.517 [main] DEBUG o.e.jetty.webapp.WebAppClassLoader - WAP webapp loaded class org.springframework.expression.spel.ast.OperatorNot 1

我想将粒度从 DEBUG 更改为有关码头服务器的信息。

【问题讨论】:

    标签: java intellij-idea jetty


    【解决方案1】:

    jetty-logging.properties 文件放入您的资源文件夹并在那里配置日志记录:

    # Configure for System.err output
    org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
    # Configure StdErrLog to log all jetty namespace at default of WARN or above
    org.eclipse.jetty.LEVEL=INFO
    

    更多信息在这里:https://www.eclipse.org/jetty/documentation/9.4.x/configuring-logging.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-16
      • 2015-08-17
      • 2014-12-06
      • 1970-01-01
      • 2017-03-17
      • 2011-11-02
      • 2011-12-26
      • 1970-01-01
      相关资源
      最近更新 更多