Logger - MongoDB
MongoDB
-
Edit the MongoDB configuration file:
sudo nano /etc/mongod.conf
-
Add or modify the following settings:
systemLog: destination: file path: /var/log/mongodb/mongod.log logAppend: true operationProfiling: mode: all
-
Restart MongoDB:
sudo systemctl restart mongod