Sha256: 74137518464fa6bfa27dd47d8f2058e0c6a5fd1ecf51c0ba2bca0f4e9d221c6f
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
require 'structured_log' attributes = {:a => 0, :b => 1} text = 'This section has a potpourri.' StructuredLog.open('potpourri_usual.xml') do |log| log.section('The usual', 'Mixed hash, string, and special symbols are logged as usual.') do log.section('Potpourri', attributes, text, :timestamp, :duration, :rescue) do sleep 1 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
structured_log-0.9.0 | readme_files/scripts/potpourri_usual.rb |