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
Instance Attribute Summary
Attributes inherited from Cinch::Logger
Instance Method Summary (collapse)
-
- log(messages, event, level = event)
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)
Logs a message.
11 12 13 14 |
# File 'lib/cinch/logger/zcbot_logger.rb', line 11 def log(, event, level = event) return if event != :incoming super end |