Sha256: a6bc44dc303d1edbcc40058a2d39865bf3d746b1606d26c7b4048d1266cd2814
Contents?: true
Size: 523 Bytes
Versions: 2
Compression:
Stored size: 523 Bytes
Contents
# frozen_string_literal: true require '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grpc_kit-0.1.10 | lib/grpc_kit.rb |
grpc_kit-0.1.9 | lib/grpc_kit.rb |