lib/logstash-logger/device/stdout.rb in logstash-logger-0.6.2 vs lib/logstash-logger/device/stdout.rb in logstash-logger-0.7.0

- old
+ new

@@ -1,11 +1,9 @@ module LogStashLogger module Device - class Stdout < Base + class Stdout < IO def initialize(opts={}) - super - @io = $stdout - @io.sync = sync unless sync.nil? + super({io: $stdout}.merge(opts)) end def close # no-op # Calling $stdout.close would be a bad idea