Class: LogStashLogger::Device::Stdout
- Defined in:
- lib/logstash-logger/device/stdout.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(opts = {}) ⇒ Stdout
constructor
A new instance of Stdout.
Methods inherited from Base
Constructor Details
#initialize(opts = {}) ⇒ Stdout
Returns a new instance of Stdout.
4 5 6 |
# File 'lib/logstash-logger/device/stdout.rb', line 4 def initialize(opts={}) super({io: $stdout}.merge(opts)) end |
Instance Method Details
#close ⇒ Object
8 9 10 11 |
# File 'lib/logstash-logger/device/stdout.rb', line 8 def close # no-op # Calling $stdout.close would be a bad idea end |