How can we set the MongoDB log rotation policy on Windows

We have had MongoDB service running continuously for a couple of months now, and we have observed that the mongo service log size has been increased to more than 5GB. Due to which we are not able to check the log file for troubleshooting purposes. As the new log file gets created only when we restart the service, we want a way to enforce a log rotation policy based on daily or log file size limits.
We have tried the solution given in the below links, but are still not able to resolve this issue.

Can we get any suggestions, on this issue? Thanks in advance.