Class: Cinch::Logger::ZcbotLogger
- Inherits:
-
Cinch::Logger
- Object
- Cinch::Logger
- Cinch::Logger::ZcbotLogger
- Defined in:
- lib/cinch/logger/zcbot_logger.rb
Overview
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..
Constant Summary
Constants inherited from Cinch::Logger
Instance Attribute Summary
Attributes inherited from Cinch::Logger
Instance Method Summary collapse
-
#log(messages, event, level = event) ⇒ void
Logs a message.
Methods inherited from Cinch::Logger
#debug, #error, #exception, #fatal, #incoming, #info, #initialize, #outgoing, #warn, #will_log?
Constructor Details
This class inherits a constructor from Cinch::Logger
Instance Method Details
#log(messages, event, level = event) ⇒ void
This method returns an undefined value.
Logs a message.
14 15 16 17 |
# File 'lib/cinch/logger/zcbot_logger.rb', line 14 def log(, event, level = event) return if event != :incoming super end |