[英]Google App Engine (Java) Logging Levels 1.7.4 Reduction
I'm trying to reduce the noise level of my dev environment. 我正在尝试降低开发环境的噪音水平。 I have tried setting the logging level in my
logging.properties
file to .level=SEVERE
but I'm still receiving logs like the following: 我尝试将我的
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
Does anyone know how to reduce these INFO logs? 有谁知道如何减少这些信息日志?
You have to add the following statement to your /war/WEB-INF/logging.properties
: 您必须在
/war/WEB-INF/logging.properties
添加以下语句:
com.your_package_name.your_app_name.server.level = SEVERE
Hope this helps. 希望这可以帮助。
Notice the second line of the default logging.properties
file shown below. 请注意下面显示的默认
logging.properties
文件的第二行。 It states All App Engine logging is through java.util.logging . 它指出所有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
You can find the documentation for that here . 您可以在此处找到相关文档 。 Look at the Field Summary section for all the possibilities.
查看“字段摘要”部分,了解所有可能性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.