Class: LogStash::Logging::JSON
- Inherits:
-
Object
- Object
- LogStash::Logging::JSON
- Defined in:
- lib/logstash/logging/json.rb
Instance Method Summary collapse
- #<<(obj) ⇒ Object
-
#initialize(io) ⇒ JSON
constructor
A new instance of JSON.
Constructor Details
#initialize(io) ⇒ JSON
Returns a new instance of JSON.
7 8 9 10 11 12 |
# File 'lib/logstash/logging/json.rb', line 7 def initialize(io) raise ArgumentError, "Expected IO, got #{io.class.name}" unless io.is_a?(IO) @io = io @lock = Mutex.new end |