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

Version Path
aws_assume_role-1.2.3-universal-freebsd lib/aws_assume_role/logging.rb
aws_assume_role-1.2.3-universal-darwin lib/aws_assume_role/logging.rb
aws_assume_role-1.2.3-universal-linux lib/aws_assume_role/logging.rb
aws_assume_role-1.2.3-universal-openbsd lib/aws_assume_role/logging.rb
aws_assume_role-1.2.3 lib/aws_assume_role/logging.rb
aws_assume_role-1.2.3-linux lib/aws_assume_role/logging.rb
aws_assume_role-1.2.2-universal-darwin lib/aws_assume_role/logging.rb
aws_assume_role-1.2.2-universal-linux lib/aws_assume_role/logging.rb
aws_assume_role-1.2.2-linux lib/aws_assume_role/logging.rb
aws_assume_role-1.2.2-universal-openbsd lib/aws_assume_role/logging.rb
aws_assume_role-1.2.2-universal-freebsd lib/aws_assume_role/logging.rb
aws_assume_role-1.2.2 lib/aws_assume_role/logging.rb
aws_assume_role-1.2.1 lib/aws_assume_role/logging.rb
aws_assume_role-1.2.1-linux lib/aws_assume_role/logging.rb
aws_assume_role-1.2.1-universal-openbsd lib/aws_assume_role/logging.rb
aws_assume_role-1.2.1-universal-darwin lib/aws_assume_role/logging.rb
aws_assume_role-1.2.1-universal-freebsd lib/aws_assume_role/logging.rb
aws_assume_role-1.2.1-universal-linux lib/aws_assume_role/logging.rb
aws_assume_role-1.2.0 lib/aws_assume_role/logging.rb
aws_assume_role-1.2.0-linux lib/aws_assume_role/logging.rb