Sha256: bdbb5e8d6619cc0c32063f87ee84f31882244e31f970ebe6632cd16d44ad1a1e
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
require 'structured_log' data = { :float => 3.14, :fixnum => 1066, :false => false, :time => Time.new, :exception => RuntimeError.new('Oops!'), :nil => nil, } StructuredLog.open('data.xml') do |log| data.each_pair do |type, datum| name = "my_#{type}" log.put_data(name, datum) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
structured_log-0.9.0 | readme_files/scripts/data.rb |