# File log.rb, line 22 def Log.log(level, log, msg) return if level > @@logLevel log = 'log' if log.nil? || log.empty? File.open("#{TEMPDIR}/#{log}.log", File::CREAT | File::APPEND | File::WRONLY) { | file | file.puts "[#{Time.now().to_s}] [#{caller()[-1]}] #{msg}" } end