Module: XRay::Logging
- Included in:
- Annotations, DefaultContext, DefaultEmitter, DefaultSampler, DefaultStreamer, LambdaRecorder, LeadPoller, Plugins::EC2, Plugins::ECS, Plugins::ElasticBeanstalk, RuleCache, RulePoller, ServiceConnector, TraceHeader
- Defined in:
- lib/aws-xray-sdk/logger.rb
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
.logger ⇒ Object
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 |