title: How can I disable MongoDB log messages in console?
body: <p>I have this little test script:</p>
  
  <pre><code>require 'mongo'
  
  mongo_client = Mongo::Client.new(['127.0.0.1:27017'], :database =&gt; 'test')
  mongo_client[:collection].insert_one({a: 1})
  </code></pre>
  
  <p>An this is the console output:</p>
  
  <pre><code>$ ruby test.rb
  D, [2015-05-17T21:12:05.504986 #25257] DEBUG -- : MONGODB | Adding 127.0.0.1:27017 to the cluster. | runtime: 0.0212ms
  D, [2015-05-17T21:12:05.531238 #25257] DEBUG -- : MONGODB | COMMAND | namespace=admin.$cmd selector={:ismaster=&gt;1} flags=[] limit=-1 skip=0 project=nil | runtime: 24.5481ms
  D, [2015-05-17T21:12:05.554532 #25257] DEBUG -- : MONGODB | COMMAND | namespace=test.$cmd selector={:insert=&gt;"collection", :documents=&gt;[{:a=&gt;1, :_id=&gt;&lt;BSON::ObjectId:0x21935660 data=5558e80553657262a9000000&gt;}], :writeConcern=&gt;{:w=&gt;1}, :ordered=&gt;true} flags=[] limit=-1 skip=0 project=nil | runtime: 21.1718ms
  </code></pre>
  
  <p>I want to disable those log messages, I don't want a dirty STDOUT. I didn't found any option for this in the ruby driver, and also I've tried to edit <code>/etc/mongod.conf</code> with these directives (but it didn't fix it):</p>
  
  <pre><code>verbose = false
  diaglog = 0
  </code></pre>
  
  <p>Any idea? I don't know what else I can try!</p>