Write Error Logs only in mongodb.log

i facing one issue with logs its generating too many files in few mints and consume gb’s in one day so i want to reduce the size of logs file i just want one file with error logs only not informational logs
can someone please help on this really appericated!!

You can configure mongod to run with systemLog.quiet

systemLog.quiet is not recommended for production systems as it may make tracking problems during particular connections much more difficult.

Investigating centralised logging systems or shipping archived logs off system may server you better in the long term.