Sha256: b44bbe728ecf56738b7843bfa79841ecb96ea21ff8c037e918dfe8135269c12b

Contents?: true

Size: 247 Bytes

Versions: 4

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

class Async::App::EventLogger
  include Async::App::Component

  def run
    bus.subscribe(/.*/) do |payload, name|
      debug { "Event #{name} received. Payload:\n\n#{payload.pretty_inspect}\n" }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
async-tools-0.2.9 lib/async/app/event_logger.rb
async-tools-0.2.8 lib/async/app/event_logger.rb
async-tools-0.2.7 lib/async/app/event_logger.rb
async-tools-0.2.6 lib/async/app/event_logger.rb