module WZombi class Logger def initialize(path) @path = path end def log(msg) line = "[#{Time.now.strftime('%H:%M:%S')}] #{msg}" File.open(@path, "a") { |f| f.puts(line) } end end end