title: How can I get the URL of the currently connected MongoDB database from inside Meteor?
body: <p><strong>Background</strong>: I am preparing a Meteor app for production, and in particular I am adding server logging. To do this I am using <a href="https://github.com/winstonjs/winston" rel="nofollow">winston</a> with the <a href="https://github.com/winstonjs/winston-mongodb" rel="nofollow">MongoDB plugin</a>. This requires the URL to the database. These databases are different between production and development environments so I want to set it programatically. </p>
  
  <p>I am trying to avoid running forking a script to run</p>
  
  <pre><code># meteor mongo --url
  </code></pre>
  
  <p>I also don't have access to $MONGO_URL on the development server (it doesn't appear to be set, for instance in process.env.MONGO_URL)</p>
  
  <p>I expect that there is something like below, but I couldn't find this in the documentation or via Google. </p>
  
  <pre><code>Meteor.MongoDB.getURL(); 
  </code></pre>
  
  <p>Sorry if this is something really obvious...it feels like it should be easy.</p>