Sha256: d8ad66354de519e6abb7cba529c9c36fd51702dc0975546f618c8754edff409c

Contents?: true

Size: 308 Bytes

Versions: 12

Compression:

Stored size: 308 Bytes

Contents

module MajesticSeo
  module Api
    module Logger

      def log(level, message)
        if ((self.respond_to?(:verbose) && self.verbose) || !self.respond_to?(:verbose))
          (defined?(Rails) && Rails.logger) ? Rails.logger.send(level, message) : puts(message)
        end
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
majestic_seo_api-1.4.0 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.3.1 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.3.0 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2.8 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2.7 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2.6 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2.5 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2.4 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2.3 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2.2 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2.1 lib/majestic_seo/api/logger.rb
majestic_seo_api-1.2 lib/majestic_seo/api/logger.rb