Class: Woodchuck::Output::STDOUT

Inherits:
Woodchuck::Output show all
Defined in:
lib/woodchuck/output/stdout.rb

Instance Attribute Summary

Attributes inherited from Woodchuck::Output

#host, #logger, #type

Instance Method Summary collapse

Constructor Details

#initialize(log_level) ⇒ STDOUT

Returns a new instance of STDOUT.



4
5
6
7
# File 'lib/woodchuck/output/stdout.rb', line 4

def initialize(log_level)
  super(log_level)
  @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