Class: LogStashLogger::Device::Stdout

Inherits:
Base
  • Object
show all
Defined in:
lib/logstash-logger/device/stdout.rb

Instance Attribute Summary

Attributes inherited from Base

#io, #sync

Instance Method Summary collapse

Methods inherited from Base

#flush, #to_io, #write

Constructor Details

#initialize(opts = {}) ⇒ Stdout

Returns a new instance of Stdout.



4
5
6
7
8
# File 'lib/logstash-logger/device/stdout.rb', line 4

def initialize(opts={})
  super
  @io = $stdout
  @io.sync = sync unless sync.nil?
end

Instance Method Details

#closeObject



10
11
12
13
# File 'lib/logstash-logger/device/stdout.rb', line 10

def close
  # no-op
  # Calling $stdout.close would be a bad idea
end