module Segment::Analytics::Logging
Attributes
logger[W]
Public Class Methods
included(base)
click to toggle source
# File lib/segment/analytics/logging.rb, line 20 def self.included(base) class << base def logger Logging.logger end end end
logger()
click to toggle source
# File lib/segment/analytics/logging.rb, line 7 def logger @logger ||= if defined?(Rails) Rails.logger else logger = Logger.new STDOUT logger.progname = 'Segment::Analytics' logger end end
Public Instance Methods
logger()
click to toggle source
# File lib/segment/analytics/logging.rb, line 28 def logger Logging.logger end