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 Cinch::Logger#log)
# File lib/cinch/logger/zcbot_logger.rb, line 11 def log(messages, event, level = event) return if event != :incoming super end
# File lib/cinch/logger/zcbot_logger.rb, line 17 def format_incoming(message) Time.now.strftime("%m/%d/%Y %H:%M:%S ") + message end