lib/dry/monitor/sql/logger.rb in dry-monitor-0.5.0 vs lib/dry/monitor/sql/logger.rb in dry-monitor-0.6.0

- old
+ new

@@ -1,10 +1,9 @@ # frozen_string_literal: true require "dry-configurable" require "dry/core/extensions" -require "dry/monitor/notifications" module Dry module Monitor Notifications.register_event(:sql) @@ -12,23 +11,19 @@ class Logger extend Dry::Core::Extensions extend Dry::Configurable register_extension(:default_colorizer) do - require_relative "./colorizers/default" - module DefaultColorizer def colorizer @colorizer ||= Colorizers::Default.new(config.theme) end end Logger.include(DefaultColorizer) end register_extension(:rouge_colorizer) do - require_relative "./colorizers/rouge" - module RougeColorizer def colorizer @colorizer ||= Colorizers::Rouge.new(config.theme) end end