lib/logstash-logger/device/stdout.rb in logstash-logger-0.5.0 vs lib/logstash-logger/device/stdout.rb in logstash-logger-0.6.0
- old
+ new
@@ -1,9 +1,11 @@
module LogStashLogger
module Device
class Stdout < Base
def initialize(opts={})
+ super
@io = $stdout
+ @io.sync = sync unless sync.nil?
end
def close
# no-op
# Calling $stdout.close would be a bad idea