Class: VCAP::Logging::Sink::StdioSink
- Defined in:
- lib/vcap/logging/sink/stdio_sink.rb
Overview
Instance Attribute Summary
Attributes inherited from BaseSink
#autoflush, #formatter, #opened
Instance Method Summary collapse
-
#initialize(io, formatter = nil) ⇒ StdioSink
constructor
A new instance of StdioSink.
Methods inherited from BaseSink
#add_record, #close, #flush, #open
Constructor Details
#initialize(io, formatter = nil) ⇒ StdioSink
Returns a new instance of StdioSink.
10 11 12 13 14 |
# File 'lib/vcap/logging/sink/stdio_sink.rb', line 10 def initialize(io, formatter=nil) super(formatter) @io = io open end |