title: Mongodb's Java driver keeps logging message, how to disable it?
body: <p>I am using Mongodb Java Driver 3.4.0-beta, and its 'org.mongodb.driver' keeps logging out messages below:</p>
  
  <pre><code>2017-06-28 10:11:37.893  INFO 11700 --- [localhost:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=682055}
  2017-06-28 10:11:44.926  INFO 11700 --- [127.0.0.1:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=661572}
  2017-06-28 10:11:47.898  INFO 11700 --- [localhost:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=688467}
  2017-06-28 10:11:54.931  INFO 11700 --- [127.0.0.1:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=669573}
  2017-06-28 10:11:57.902  INFO 11700 --- [localhost:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=688015}
  2017-06-28 10:12:04.934  INFO 11700 --- [127.0.0.1:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=658192}
  2017-06-28 10:12:07.905  INFO 11700 --- [localhost:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=706180}
  2017-06-28 10:12:14.940  INFO 11700 --- [127.0.0.1:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=660184}
  2017-06-28 10:12:17.910  INFO 11700 --- [localhost:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=692718}
  2017-06-28 10:12:24.945  INFO 11700 --- [127.0.0.1:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=127.0.0.1:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[3, 4, 1]}, minWireVersion=0, maxWireVersion=5, maxDocumentSize=16777216, roundTripTimeNanos=711120}
  2017-06-28 10:12:27.914  INFO 11700 --- [localhost:27017] org.mongodb.driver.cluster               : Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{org/xsd/maven-4.0.0.xsd"&gt;
  </code></pre>
  
  <p>It's useless information for me and too much verbose. I've searched almost every solution in stackoverflow and none of them works for me. One of them is like:</p>
  
  <pre><code>static {
    System.setProperty("DEBUG.MONGO", "false");
    System.setProperty("DB.TRACE", "false");
    LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
    Logger logger = context.getLogger("org.mongodb.driver.cluster");
    logger.setLevel(Level.OFF);
  }
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>static {
    Logger logger = (Logger) LoggerFactory.getLogger("org.mongodb.driver.cluster");
    logger.setLevel(Level.OFF);
  }
  </code></pre>
  
  <p>By making breakpoints to debug I've figured out that it used <code>logback</code> as Logger implementation and but I had no way to get real logger the driver is using, so I cannot set it's log level. Using <code>Logger logger = (Logger) LoggerFactory.getLogger("org.mongodb.driver.cluster");</code> actually doesn't work. It just keeps logging out.</p>
  
  <p>I am wondering:</p>
  
  <ol>
  <li>How to avoid those messages?</li>
  <li>Why does mongodb driver log it?(it's totally useless infomation)</li>
  </ol>