[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。

[备忘]logback关闭mongo的debug日志

上一篇:[备忘]java线程池,最大值,满了重试
下一篇:[备忘]java.util.zip.Inflater未关闭导致的内存持续增长,内存占用超过-Xmx的限制

添加日期:2017/10/14 18:00:35 快速返回   返回列表 阅读4773次

控制台总输出这东西,还超多,几秒就输出一次,烦死


2017-10-14 16:08:42.833 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7656', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Checking status of 192.168.18.100:27017
2017-10-14 16:08:42.835 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7658', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to  {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=9.6 ms, state=CONNECTED}]
2017-10-14 16:08:42.836 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7656', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to  {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=8.9 ms, state=CONNECTED}]
2017-10-14 16:08:52.822 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7657', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Checking status of 192.168.18.100:27017
2017-10-14 16:08:52.836 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7658', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Checking status of 192.168.18.100:27017
2017-10-14 16:08:52.836 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7656', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Checking status of 192.168.18.100:27017
2017-10-14 16:08:52.902 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7656', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to  {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=20.0 ms, state=CONNECTED}]
2017-10-14 16:08:52.902 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7657', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to  {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=27.5 ms, state=CONNECTED}]
2017-10-14 16:08:52.903 [cluster-ClusterId{value='59e1c57e1896fe1c5c5d7658', description='null'}-192.168.18.100:27017] DEBUG org.mongodb.driver.cluster - Updating cluster description to  {type=STANDALONE, servers=[{address=192.168.18.100:27017, type=STANDALONE, roundTripTime=21.1 ms, state=CONNECTED}]
c2017-10-14 16:08:58.357 [DefaultQuartzScheduler_QuartzSchedulerThread] DEBUG o.quartz.core.QuartzSchedulerThread - batch acquisition of 0 triggers



解决方法:

Logback的xml中,增加
<logger name="org.mongodb.driver.cluster" level="ERROR" />
即可。

别的不知道怎么弄。
 

评论 COMMENTS
guest522461957
2019/3/28 14:23:26
感谢!

添加评论 Add new comment.
昵称 Name:
评论内容 Comment:
验证码(不区分大小写)
Validation Code:
(not case sensitive)
看不清?点这里换一张!(Change it here!)
 
评论由管理员查看后才能显示。the comment will be showed after it is checked by admin.
CopyRight © 心缘地方 2005-2999. All Rights Reserved