Module: Segment::Analytics::Logging
- Included in:
- Segment::Analytics, Client, MessageBatch, Request, Worker
- Defined in:
- lib/segment/analytics/logging.rb
Class Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.logger ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/segment/analytics/logging.rb', line 31 def logger return @logger if @logger base_logger = if defined?(Rails) Rails.logger else logger = Logger.new STDOUT logger.progname = 'Segment::Analytics' logger end @logger = PrefixedLogger.new(base_logger, '[analytics-ruby]') end |