MongoDB log levels

In mongodb, you can set the log level to range from 0 to 5. I was wondering what the general behavior of each of these levels was and what level it should be set to not record inserts. Its annoying to go through the log when you bypass 600ips.


source to share

2 answers

Well, I think I solved it. Even though mongodb reported that the log level is 0, obviously this is not the case. When I started playing with the log levels, I tried a different number to look for changes in the log. But when I put it back to 0, it stopped writing the insert.



Actually this is probably the --slowms setting function, not the logging level - the default is 100ms. Increase this number and the number of inserts recorded should decrease. The following examples have been discussed here:



All Articles