Module: Hightouch::Analytics::Logging
- Included in:
- Hightouch::Analytics, Client, MessageBatch, Transport, Worker
- Defined in:
- lib/hightouch/analytics/logging.rb
Class Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.logger ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/hightouch/analytics/logging.rb', line 33 def logger return @logger if @logger base_logger = if defined?(Rails) Rails.logger else logger = Logger.new STDOUT logger.progname = 'Hightouch::Analytics' logger end @logger = PrefixedLogger.new(base_logger, '[events-sdk-ruby]') end |
Class Method Details
.included(base) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/hightouch/analytics/logging.rb', line 49 def self.included(base) class << base def logger Logging.logger end end end |
Instance Method Details
#logger ⇒ Object
57 58 59 |
# File 'lib/hightouch/analytics/logging.rb', line 57 def logger Logging.logger end |