Class: Woodchuck::Output::STDOUT
- Inherits:
-
Woodchuck::Output
- Object
- Woodchuck::Output
- Woodchuck::Output::STDOUT
- Defined in:
- lib/woodchuck/output/stdout.rb
Instance Attribute Summary
Attributes inherited from Woodchuck::Output
Instance Method Summary collapse
- #handle(event) ⇒ Object
-
#initialize ⇒ STDOUT
constructor
A new instance of STDOUT.
Constructor Details
#initialize ⇒ STDOUT
Returns a new instance of STDOUT.
4 5 6 7 |
# File 'lib/woodchuck/output/stdout.rb', line 4 def initialize super @type = :stdout end |
Instance Method Details
#handle(event) ⇒ Object
9 10 11 |
# File 'lib/woodchuck/output/stdout.rb', line 9 def handle(event) @logger.info "Logging event to STDOUT", event.to_hash end |