Sha256: 706f1636ec15c14e584d24ecd98ba08a1e142767a449440305fc54d1ccbaeb89
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true require 'logger' require 'grpc_kit/grpc/core' require 'grpc_kit/grpc/errors' require 'grpc_kit/grpc/generic_service' require 'grpc_kit/grpc/interceptor' require 'grpc_kit/grpc/logger' require 'grpc_kit/version' require 'grpc_kit/server' require 'grpc_kit/client' module GrpcKit class << self # @param value [Logger] Any logger attr_writer :logger # @return [Logger] def logger @logger ||= Logger.new(STDOUT, level: ENV['GRPC_KIT_LOGLEVEL'] || :info) end # @param level [String] :debug, :info, :warn, :error, :fatal or :unknown # @return [void] def self.loglevel=(level) logger.level = level end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
grpc_kit-0.1.14 | lib/grpc_kit.rb |
grpc_kit-0.1.13 | lib/grpc_kit.rb |
grpc_kit-0.1.12 | lib/grpc_kit.rb |
grpc_kit-0.1.11 | lib/grpc_kit.rb |