title: Mongo Shell - Console/Debug Log
body: <p>Probably a dumb question. Experimenting with Mongo shell.</p>
  
  <p>I want to do something like:</p>
  
  <pre><code>matt@linuxvm:~/mongodb-linux-i686-1.2.3/bin$ ./mongo
  MongoDB shell version: 1.2.3
  url: test
  connecting to: test
  Thu Feb 25 20:57:47 connection accepted from 127.0.0.1:37987 #3
  type "help" for help
  &gt; function test() { debug.log("hello") }
  &gt; test()
  Thu Feb 25 20:58:06 JS Error: ReferenceError: debug is not defined (shell):0
  </code></pre>
  
  <p>In other words, how can I output to the console when evaluating JS functions from within Mongo shell.  I intend some admin / populate script that I'd like to output some nicety info.</p>
  
  <p>I've tried console.log, debug.log, log the obvious ones.. </p>