lib/d2d/client/session.rb
def find_logger(config)
        if config.logger
          config.logger
        elsif defined? Rails
          Rails.logger
        else
          logger = Logger.new($stderr)
          logger.level = Logger::FATAL
          logger
        end
      end
# Looks up the appropriate logger.  In order of preference
# 1. logger from configuration (if present)
# 2. `Rails.logger if defined? Rails`
# 3. New Logger($stderr, FATAL)
Looks up the appropriate logger.  In order of preference
1. logger from configuration (if present)
2.
Looks up the appropriate logger . In order of preference 1 . logger from configuration ( if present ) 2 .
def find_logger(config)
        if config.logger
          config.logger
        elsif defined? Rails
          Rails.logger
        else
          logger = Logger.new($stderr)
          logger.level = Logger::FATAL
          logger
        end
      end
def find_logger ( config ) if config . logger config . logger elsif defined? Rails Rails . logger else logger = Logger . new ( $stderr ) logger . level = Logger :: FATAL logger end end
Looks up the appropriate logger.
Looks up the appropriate logger .
config