Class: Wukong::Processor::Logger
- Inherits:
-
Wukong::Processor
- Object
- Hanuman::Stage
- Wukong::Processor
- Wukong::Processor::Logger
- Defined in:
- lib/wukong/widget/logger.rb
Overview
A widget that will log all incoming records.
Constant Summary
Constants inherited from Wukong::Processor
Instance Attribute Summary
Attributes included from Hanuman::StageInstanceMethods
Instance Method Summary collapse
-
#process(record) ⇒ Object
Process a given
record
by logging it.
Methods inherited from Wukong::Processor
configure, description, #finalize, #perform_action, #receive_action, #setup, #stop
Methods included from Logging
Methods inherited from Hanuman::Stage
Methods included from Hanuman::StageClassMethods
#builder, #label, #register, #set_builder
Methods included from Hanuman::StageInstanceMethods
#add_link, #linkable_name, #root
Instance Method Details
#process(record) ⇒ Object
Process a given record
by logging it.
50 51 52 |
# File 'lib/wukong/widget/logger.rb', line 50 def process(record) log.send(level, record) end |