Wraps all events and context for a single incident.
Merge two incidents together. This may be useful if two incidents occur at the same time.
# File lib/celluloid/logging/incident.rb, line 14 def merge(*other_incidents) merged_events = other_incidents.flatten.inject(events) do |events, incident| events += incident.events end Incident.new(merged_events.sort, triggering_event) end
Generated with the Darkfish Rdoc Generator 2.