Sha256: 2fc21963344b2054a2076af95b55fea9982261adb8cf308d971f165152616a41

Contents?: true

Size: 258 Bytes

Versions: 8

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

module GrpcKit
  module GRPC
    module DefaultLogger
      def self.logger
        LOGGER
      end

      LOGGER = Logger.new(STDOUT)
    end

    unless methods.include?(:logger)
      extend DefaultLogger
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
grpc_kit-0.1.8 lib/grpc_kit/grpc/logger.rb
grpc_kit-0.1.7 lib/grpc_kit/grpc/logger.rb
grpc_kit-0.1.6 lib/grpc_kit/grpc/logger.rb
grpc_kit-0.1.5 lib/grpc_kit/grpc/logger.rb
grpc_kit-0.1.4 lib/grpc_kit/grpc/logger.rb
grpc_kit-0.1.3 lib/grpc_kit/grpc/logger.rb
grpc_kit-0.1.2 lib/grpc_kit/grpc/logger.rb
grpc_kit-0.1.1 lib/grpc_kit/grpc/logger.rb