class Cinch::Logger::ZcbotLogger

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..

Public Instance Methods

log(messages, event, level = event) click to toggle source

(see Logger#log)

Calls superclass method Cinch::Logger#log
# File lib/cinch/logger/zcbot_logger.rb, line 13
def log(messages, event, level = event)
  return if event != :incoming

  super
end

Private Instance Methods

format_incoming(message) click to toggle source
# File lib/cinch/logger/zcbot_logger.rb, line 21
def format_incoming(message)
  Time.now.strftime("%m/%d/%Y %H:%M:%S ") + message
end