Adding rudimentary logging

This commit is contained in:
Scott Schneider 2013-10-01 16:34:32 -07:00
parent fe5f2dc28a
commit 5838315609
2 changed files with 23 additions and 4 deletions

13
lib/logger.rb Executable file
View file

@ -0,0 +1,13 @@
require 'rubygems' unless defined?(Gem)
class Logger
def initialize
end
def log level, string
time = Time.new
stamp = time.strftime('%Y-%m-%d %H:%M:%S')
puts "[#{stamp}] #{string}"
end
end