Module: XRay::Logging

Overview

Provide global logger for classes that include this module. It serves as a proxy to global recorder’s logger.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.loggerObject



11
12
13
# File 'lib/aws-xray-sdk/logger.rb', line 11

def self.logger
  @logger ||= Logger.new($stdout).tap { |l| l.level = Logger::INFO }
end

.logger=(v) ⇒ Object



15
16
17
# File 'lib/aws-xray-sdk/logger.rb', line 15

def self.logger=(v)
  @logger = v
end

Instance Method Details

#loggerObject



7
8
9
# File 'lib/aws-xray-sdk/logger.rb', line 7

def logger
  Logging.logger
end