Sha256: 54898768ddb21a59f5963769a35d5386332da74649a3cebcf2771e0b21b72894

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 Bytes

Contents

<%= application_module %>::Application.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

1 entries across 1 versions & 1 rubygems

Version Path
snowpack-1.0.0.alpha7 lib/snowpack/generators/application/templates/system/boot/monitor.rb.tt