1

我正在尝试降低我的开发环境的噪音水平。我尝试将logging.properties文件中的日志记录级别设置为,.level=SEVERE但我仍然收到如下日志:

Dec 24, 2012 2:47:16 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Dec 24, 2012 2:47:16 PM com.google.apphosting.utils.config.AppEngineWebXmlReader     readAppEngineWebXml
INFO: Successfully processed C:\Ws\testproject\war\WEB-INF/appengine-web.xml
Dec 24, 2012 2:47:16 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed C:\Ws\apphosting\war\WEB-INF/web.xml

有谁知道如何减少这些INFO日志?

4

2 回答 2

1

您必须将以下语句添加到您的/war/WEB-INF/logging.properties

com.your_package_name.your_app_name.server.level = SEVERE

希望这可以帮助。

于 2012-12-25T19:59:21.113 回答
0

logging.properties请注意下面显示的默认文件的第二行。它指出所有 App Engine 日志记录都是通过 java.util.logging 进行的。

# A default java.util.logging configuration.
# (All App Engine logging is through java.util.logging by default).
#
# To use this configuration, copy it into your application's WEB-INF
# folder and add the following to your appengine-web.xml:
#
# <system-properties>
#   <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
# </system-properties>
#

# Set the default logging level for all loggers to WARNING
.level = WARNING

您可以在此处找到相关文档。查看字段摘要部分以了解所有可能性。

于 2015-06-04T03:05:20.843 回答