title: Creating a logging system using Swift
body: <p>I'm trying to make a logging system that reads from a "log.txt" file and displays it to a NSTextView in my ViewController. Here's what I have,</p>
  
  <pre><code>while(server.listen()) {
      NSThread.sleepForTimeInterval(1)
      self.consoleOutput.string! = log.read()
  }
  </code></pre>
  
  <p>log.read() outputs a "log.txt" file.</p>
  
  <p>self.consoleOutput.string! updates the NSTextView</p>
  
  <p>It freezes up immediately, any ideas on how to approach this? It's my first time creating a log system.</p>