Sha256: 653f1c634e8433deddcf17abf05b3ce33f7c48cc1ebf0e6bec19375e0e188666

Contents?: true

Size: 321 Bytes

Versions: 10

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

require "logger"

module Dry
  module Monitor
    class Logger < ::Logger
      DEFAULT_FORMATTER = proc do |_severity, _datetime, _progname, msg|
        "#{msg}\n"
      end

      def initialize(*args)
        super
        self.formatter = DEFAULT_FORMATTER
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dry-monitor-1.0.1 lib/dry/monitor/logger.rb
dry-monitor-1.0.0 lib/dry/monitor/logger.rb
dry-monitor-0.7.0 lib/dry/monitor/logger.rb
dry-monitor-0.6.3 lib/dry/monitor/logger.rb
dry-monitor-0.6.2 lib/dry/monitor/logger.rb
dry-monitor-0.6.1 lib/dry/monitor/logger.rb
dry-monitor-0.6.0 lib/dry/monitor/logger.rb
dry-monitor-0.5.0 lib/dry/monitor/logger.rb
dry-monitor-0.4.0 lib/dry/monitor/logger.rb
dry-monitor-0.3.2 lib/dry/monitor/logger.rb