Sha256: f8d586aee8d5142bba2c2f644e49a2c623079cebd44d1d9590bc4b0eb6455de2

Contents?: true

Size: 246 Bytes

Versions: 5

Compression:

Stored size: 246 Bytes

Contents

<%= config[:camel_cased_app_name] %>::Container.boot :monitor do
  init do
    require "dry/monitor/sql/logger"
  end

  start do
    notifications.register_event(:sql)
    Dry::Monitor::SQL::Logger.new(logger).subscribe(notifications)
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
dry-web-roda-0.14.0 lib/dry/web/roda/templates/monitor.rb.tt
dry-web-web_pipe-0.2.0 lib/dry/web/web_pipe/templates/monitor.rb.tt
dry-web-roda-0.13.1 lib/dry/web/roda/templates/monitor.rb.tt
dry-web-roda-0.13.0 lib/dry/web/roda/templates/monitor.rb.tt
dry-web-web_pipe-0.1.0 lib/dry/web/web_pipe/templates/monitor.rb.tt