java 禁用石英日志记录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14421353/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Disable quartz logging
提问by user892871
How can I disable Quartz logging? Quartz is printing INFO statements on my console. I have tried to disable it with the following statement in log4j.properties file
如何禁用 Quartz 日志记录?Quartz 正在我的控制台上打印 INFO 语句。我试图在 log4j.properties 文件中使用以下语句禁用它
log4j.logger.org.quartz=ALL, CONSOLE
采纳答案by Jintian DENG
Possible duplicate with Disabling Log4J Output in Java.
在 Java 中禁用 Log4J 输出可能重复。
Try this out:
试试这个:
log4j.logger.org.quartz=OFF
回答by Sahith
Adding this to my log4j.xml file worked!
将此添加到我的 log4j.xml 文件中!
<logger name="org.quartz" additivity="false">
<level value="ERROR"/>
</logger>