简体   繁体   English

如何关闭此日志记录?

[英]How do I turn off this logging?

How do I turn off this logging? 如何关闭此日志记录?

Log 日志记录

Dec 03, 2013 1:23:21 PM com.google.appengine.datanucleus.MetaDataValidator validate
INFO: Performing appengine-specific metadata validation for com.mwv.pic.dto.Study

lib/logging.properties lib / logging.properties

.level=INFO
# Set the default logging level for ORM, specifically, to WARNING
DataNucleus.level=WARNING
com.google.appengine.datanucleus=WARNING

Run Configurations > Arguments > Program Arguments 运行配置>参数>程序参数

-Djava.util.logging.config.file=file:lib/logging.properties

If I put -Djava.util.logging.config.file=file:lib/logging.properties in VM argument properties, then NOTHING will log! 如果我将-Djava.util.logging.config.file=file:lib/logging.properties放在VM参数属性中,则NOTHING将记录!

I think that you will find that DataNucleus JDO (if indeed you are using JDO) depends on the logging technology Apache Log4J. 我认为您会发现DataNucleus JDO(如果确实在使用JDO)取决于日志技术Apache Log4J。

I use JDO and define DataNucleus Log4J settings in files called "log4j.properties": one for production and one for app building using NetBeans. 我使用JDO,并在名为“ log4j.properties”的文件中定义DataNucleus Log4J设置:一种用于生产,另一种用于使用NetBeans构建应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM