title: How to get the output of an OS X application on the console, or to a file?
body: <p>I am writing a Cocoa application with Mono embedded. I want to run and see my debug output in Terminal.  On the Cocoa side I am using <code>NSLog()</code>, and on the Mono side I am using <code>Debug.Write()</code>.  I can see my debug output in Xcode's console, but not in Terminal.  This is what I tried:  </p>
  
  <pre>
  $: open /path/build/Debug/MyProgram.app
  $: open /path/build/Debug/MyProgram.app > output
  $: open /path/build/Debug/MyProgram.app 2> output
  </pre>
  
  <p>in a terminal but I do not my output on the console or in 'ouput'.</p>
  
  <p>What's the correct command?</p>
  
  <p>PS. My ultimate goal is to write a vim plugin to manage, build, run, debug the xcode project.  You can save me this hassle if you can get this <a href="http://www.corsofamily.net/jcorso/vi/" rel="noreferrer">vi input manager</a> to work with xcode.</p>