默认是使用的 iso8601-local
Level | Description |
---|---|
F | Fatal |
E | Error |
W | Warning |
I | Informational, for Verbosity Level of 0 |
D | Debug, for All Verbosity Levels > 0 |
Item | Description |
---|---|
ACCESS | Messages related to access control, such as authentication |
COMMAND | Messages related to database commands, such as count |
CONTROL | Messages related to control activities, such as initialization |
GEO | Messages related to the parsing of geospatial shapes, such as verifying the GeoJSON shapes |
INDEX | Messages related to indexing operations, such as creating indexes |
NETWORK | Messages related to network activities, such as accepting connections |
QUERY | Messages related to queries, including query planner activities |
REPL | Messages related to replica sets, such as initial sync and heartbeats |
SHARDING | Messages related to sharding activities, such as the startup of the mongos |
STORAGE | Messages related to storage activities, such as processes involved in the fsync command |
JOURNAL | Messages related specifically to journaling activities |
WRITE | Messages related to write operations, such as update commands |
- | Messages not associated with a named component |
Tip: 使用
db.getLogComponents()
和db.setLogLevel(-1, "query")
来查看和设定日志级别
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有