Sha256: a6a0f773bc7c2abf11eba5a434377c4c83b8f1b7ec9a5a9ab35bdb2c238551c1
Contents?: true
Size: 345 Bytes
Versions: 3
Compression:
Stored size: 345 Bytes
Contents
require 'peastash/log_device' class Peastash module Outputs class IO @@default_io = STDOUT def self.default_io @@default_io end def initialize(file) @device = ::Peastash::LogDevice.new(file) end def dump(event) @device.write(event.to_json + "\n") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
peastash-0.2.3 | lib/peastash/outputs/io.rb |
peastash-0.2.2 | lib/peastash/outputs/io.rb |
peastash-0.2.1 | lib/peastash/outputs/io.rb |