This logger logs all incoming messages in the format of zcbot. All other debug output (outgoing messages, exceptions, ...) will silently be dropped. The sole purpose of this logger is to produce logs parseable by pisg (with the zcbot formatter) to create channel statistics..
(see Logger::Logger#debug)
# File lib/cinch/logger/zcbot_logger.rb, line 17 def debug(messages) end
(see Logger::Logger#log)
# File lib/cinch/logger/zcbot_logger.rb, line 21 def log(messages, kind = :generic) return if kind != :incoming @mutex.synchronize do messages = [messages].flatten.map {|s| s.to_s.chomp} messages.each do |msg| @output.puts Time.now.strftime("%m/%d/%Y %H:%M:%S ") + msg.encode("locale", {:invalid => :replace, :undef => :replace}) end end end
(see Logger::Logger#log_exception)
# File lib/cinch/logger/zcbot_logger.rb, line 33 def log_exception(e) end
Generated with the Darkfish Rdoc Generator 2.