Sha256: 6c6c224a128fe455b25a182925a8b8d587bc35ea97283d685e3ab5d6f7a5c3d9
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
require 'structured_log' attributes = {:a => 0, :b => 1} more_attributes = {:c => 2, :d => 3} text = 'This section has a potpourri.' float = 3.14159 boolean = false fixnum = 1066 time = Time.new exception = RuntimeError.new('Oops!') StructuredLog.open('potpourri.xml') do |log| log.section('All together now', 'Order does not matter except in aggregating text and attributes.') do args = [attributes, :rescue, text, float, :duration, more_attributes, boolean, :timestamp, fixnum, time, exception] log.section('Potpourri', *args) do end log.section('Reverse potpourri', *args.reverse) do end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
structured_log-0.9.0 | readme_files/scripts/potpourri.rb |