Class: Output::Stdout
- Inherits:
-
Object
- Object
- Output::Stdout
- Defined in:
- lib/xify/output/stdout.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Stdout
constructor
A new instance of Stdout.
- #process(event) ⇒ Object
Constructor Details
#initialize(config) ⇒ Stdout
Returns a new instance of Stdout.
5 6 |
# File 'lib/xify/output/stdout.rb', line 5 def initialize(config) end |
Instance Method Details
#process(event) ⇒ Object
8 9 10 |
# File 'lib/xify/output/stdout.rb', line 8 def process(event) puts "[#{(event.args[:time] || Time.now).iso8601}] #{event.}:\n#{event.}" end |