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