简体   繁体   English

Google App Engine(Java)日志记录级别1.7.4降低

[英]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.

相关问题 不登录Google App Engine - Not logging in Google App Engine 谷歌应用引擎。 堆栈驱动程序。 使用 Java 进行日志记录 - Google App Engine. Stackdriver. Logging with Java Google App Engine Java日志记录,特别是Slf4j - Google App Engine Java Logging, specifically Slf4j 在Java中实施应用程序时,在Google App引擎的应用程序中记录事件 - Logging Events in Application in Google App engine when implementing application in Java 记录Google App Engine应用程序 - Logging Google App Engine application 如何将我的Java应用程序日志记录事件映射到GCP中的相应云记录事件级别Fecomp非compat App Engine? - How do I map my java app logging events to corresponding cloud logging event levels in GCP Felexible non-compat App Engine? Google App Engine-登录时发生InvalidClassException - Google App Engine - InvalidClassException when logging in Java日志记录级别混乱 - Java logging levels confusion Google App Engine不支持java.util.logging.Logger的子类:com / ibm / icu / impl / ICULogger - Google App Engine does not support subclasses of java.util.logging.Logger: com/ibm/icu/impl/ICULogger java.util.logging.Logger方法可以在Google App Engine上失败吗? - Can java.util.logging.Logger methods ever fail on Google App Engine?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM