How to keep Mongo db java driver logs into a file?

Viewed 56

I'm using Mongo db java driver in order to perform some actions on my Mongo db server via my app. when running my jar, the mongo db driver prints his logs to the screen. I would like to stop the printing and keep the logs into a file.

can I do this?

1 Answers
Related