Sha256: c29b68b60d593136a5487e9dcbe5574024c340a5cb11f147a15f0c1e249a7105
Contents?: true
Size: 653 Bytes
Versions: 43
Compression:
Stored size: 653 Bytes
Contents
# frozen_string_literal: true require_relative "includes" require_relative "configuration" module AwsAssumeRole::Logging module ClassMethods def logger @logger ||= begin logger = Logger.new($stderr) logger.level = AwsAssumeRole::Config.log_level ENV["GLI_DEBUG"] = "true" if AwsAssumeRole::Config.log_level.zero? logger end end end module InstanceMethods def logger self.class.logger end end def self.included(base) base.extend ClassMethods base.include InstanceMethods end end
Version data entries
43 entries across 43 versions & 1 rubygems