Sha256: 7dbe31e075d7ab6d0c10a0aa8299c8eda5aef52aff24cfc1239a3cef5f49ba12
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
require 'structured_log' StructuredLog.open('rescue.xml') do |log| log.section('Section with rescue', :rescue) do log.comment('This section will terminate because of the failure.') fail 'This exception will be rescued and logged.' log.comment('This comment will not be reached.') end log.section('Another section') do log.comment('This comment will be reached and logged, because of rescue above.') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
structured_log-0.9.0 | readme_files/scripts/rescue.rb |