Sha256: 1b7a87e3ddaec1e8f03842dd0be8765bf80a96fcab3d58fe033fb1e36392cd51

Contents?: true

Size: 402 Bytes

Versions: 7

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

module Sbmt
  module KafkaProducer
    class Logger
      delegate :logger, to: :Rails

      %i[
        debug
        info
        warn
        error
        fatal
      ].each do |log_level|
        define_method log_level do |*args|
          logger.send(log_level, *args)
        end
      end

      def add(...)
        logger.add(...)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sbmt-kafka_producer-3.0.0 lib/sbmt/kafka_producer/logger.rb
sbmt-kafka_producer-2.2.3 lib/sbmt/kafka_producer/logger.rb
sbmt-kafka_producer-2.2.2 lib/sbmt/kafka_producer/logger.rb
sbmt-kafka_producer-2.2.1 lib/sbmt/kafka_producer/logger.rb
sbmt-kafka_producer-2.2.0 lib/sbmt/kafka_producer/logger.rb
sbmt-kafka_producer-2.1.0 lib/sbmt/kafka_producer/logger.rb
sbmt-kafka_producer-2.0.0 lib/sbmt/kafka_producer/logger.rb