I followed this mongodb documentation. Here is my code
public class JMongoDBCDemo { MongoClient mongoClient; DB db; DBCollection coll; public
You could just use
logging.level.org.mongodb.driver: ERROR