diff --git a/lib/freeswitcher.rb b/lib/freeswitcher.rb
index <HASH>..<HASH> 100644
--- a/lib/freeswitcher.rb
+++ b/lib/freeswitcher.rb
@@ -1,9 +1,17 @@
+require 'logger'
 require 'socket'
 require 'pp'
 
 $LOAD_PATH.unshift(File.dirname(__FILE__))
 
 module FreeSwitcher
+  # Usage:
+  #
+  #   Log.info('foo')
+  #   Log.debug('bar')
+  #   Log.warn('foobar')
+  #   Log.error('barfoo')
+  Log = Logger.new($stdout)
 end
 
 require 'freeswitcher/event'
diff --git a/lib/freeswitcher/commands/originate.rb b/lib/freeswitcher/commands/originate.rb
index <HASH>..<HASH> 100644
--- a/lib/freeswitcher/commands/originate.rb
+++ b/lib/freeswitcher/commands/originate.rb
@@ -22,14 +22,9 @@ module FreeSwitcher::Commands
       else
         raise "Invalid originator or application"
       end
-      debug "saying #{orig_command}"
+      Log.debug "saying #{orig_command}"
       @fs_socket.say(orig_command)
     end
-
-    def debug(message)
-      $stdout.puts message
-      $stdout.flush
-    end
   end
 
   register(:originate, Originate)
Adding FreeSwitcher::Log