lib/dry/monitor/sql/logger.rb in dry-monitor-0.6.2 vs lib/dry/monitor/sql/logger.rb in dry-monitor-0.6.3

- old
+ new

@@ -11,19 +11,23 @@ class Logger extend Dry::Core::Extensions extend Dry::Configurable register_extension(:default_colorizer) do + require "dry/monitor/sql/colorizers/default" + module DefaultColorizer def colorizer @colorizer ||= Colorizers::Default.new(config.theme) end end Logger.include(DefaultColorizer) end register_extension(:rouge_colorizer) do + require "dry/monitor/sql/colorizers/rouge" + module RougeColorizer def colorizer @colorizer ||= Colorizers::Rouge.new(config.theme) end end