Dear Chris,
Thanks for your reply. However, no matter I set the level, from 0 to 5, I still got the following log.
My mongo db config setting:
systemLog:
destination: file
logAppend: false
path: C:\Program Files\MongoDB\Server\5.0\log\mongod.log
quiet: true
verbosity: 5
{"t":{"$date":"2023-08-04T09:11:05.409+08:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn71675","msg":"client metadata","attr":{"remote":"127.0.0.1:63098","client":"conn71675","doc":{"driver":{"name":"nodejs","version":"4.5.0"},"os":{"type":"Windows_NT","name":"win32","architecture":"x64","version":"10.0.19045"},"platform":"Node.js v14.17.6, LE (unified)|Node.js v14.17.6, LE (unified)"}}}
{"t":{"$date":"2023-08-04T09:11:05.407+08:00"},"s":"I", "c":"COMMAND", "id":51803, "ctx":"conn71674","msg":"Slow query","attr":{"type":"command","ns":"admin.$cmd","command":{"ismaster":true,"helloOk":true,"client":{"driver":{"name":"nodejs","version":"4.5.0"},"os":{"type":"Windows_NT","name":"win32","architecture":"x64","version":"10.0.19045"},"platform":"Node.js v14.17.6, LE (unified)|Node.js v14.17.6, LE (unified)"},"compression":["none"],"loadBalanced":false,"$db":"admin"},"numYields":0,"reslen":775,"locks":{},"remote":"127.0.0.1:63097","protocol":"op_query","durationMillis":0}}
My question is how can I remove those log with severity=“Information”, I only want to log severity with fatal or error. I check the document, there is no hints on how to set this.
Thanks