-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: 1.6.0
-
Component/s: Logging
-
None
-
Not Needed
Is there any way to control the logging behavior of the mongosh, for example
- verbosity
- what to log
- retention time when old log files are deleted
or even disable logging completely?
In my application I turned to mongosh, after a few days the HOME filesystem run out of disk space!
The mongosh logs everything - every command and even the content of files loaded by load(...). This looks like an overkill to me.
I created a cron job find ~/.mongodb/mongosh/ -mindepth 1 -mmin +60 -name "*_log" -delete but I don't think this could be the final solution.
Kind Regards
Wernfried
- links to