# File linkbot.rb, line 231 def end_log(pattern=nil, input=nil) return "#{input} doesn't match #{pattern}" unless input =~ pattern $logger.close $logger == nil t = Time.now; y = t.year; m = t.month; d = t.day; h= t.hour; min = t.min; s = t.sec mins = sprintf("%02d", min) secs = sprintf("%02d", s) time = "#{y}/#{m}/#{d} #{h}:#{mins}:#{secs}" return "Okay I have stopped logging at #{time}." end