Module: AwsAssumeRole::Logging::ClassMethods

Defined in:
lib/aws_assume_role/logging.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject


5
6
7
8
9
10
11
12
# File 'lib/aws_assume_role/logging.rb', line 5

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