Sha256: 0a3363f48d4a5beeb1cd09edeeab2f2ddc6c523ed0ab73f118379924270f2e54
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
module LogStashLogger module Device class Base attr_reader :io def initialize(opts={}) end def to_io @io end def write(message) @io.write(message) end def flush @io && @io.flush end def close @io && @io.close rescue => e warn "#{self.class} - #{e.class} - #{e.message}" ensure @io = nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-logger-0.5.0 | lib/logstash-logger/device/base.rb |