Reputation: 148
How can I disable logs in MongoDB?
I'm using a container, and trying to hide the logs using the following code in docker-compose.yml
mongodb:
image: mongo
logging:
driver: "none"
I tried without quotes but it doesn't work.
Upvotes: 10
Views: 5181
Reputation: 684
Well, I have been following this thread I've omitted the whole log and it's much better in my case:
mongo:
command: mongod --quiet --logpath /dev/null
Upvotes: 18