Hi all, based on your feedback, I'm excited to announce the latest round of logging enhancements we've made in mongosh, available starting mongosh v2.4.0:
- Disable logging altogether: https://www.mongodb.com/docs/mongodb-shell/logs/disable/#std-label-mongosh-logs-disable
- Specify a custom log file location: https://www.mongodb.com/docs/mongodb-shell/logs/location/#std-label-mongosh-log-location
- Enable log compression: https://www.mongodb.com/docs/mongodb-shell/logs/compression/#std-label-mongosh-log-compression
- Specify maximum log storage size: https://www.mongodb.com/docs/mongodb-shell/logs/retention/size/#std-label-mongosh-log-retention-gb
- Modify maximum log file count: https://www.mongodb.com/docs/mongodb-shell/logs/retention/size/#std-label-mongosh-log-retention-gb
- Modify log retention duration: https://www.mongodb.com/docs/mongodb-shell/logs/retention/size/#std-label-mongosh-log-retention-gb
- Ability to write custom log entries: https://www.mongodb.com/docs/mongodb-shell/logs/custom-entries/#std-label-mongosh-custom-log-entries
You can download the latest version of mongosh from the download center: https://www.mongodb.com/try/download/shell. Please let us know if you have any additional feedback!