Sha256: 75311f5000b9276333d16be07e3331af4dfa59f11690fe09947cb33e381a0c80

Contents?: true

Size: 272 Bytes

Versions: 3

Compression:

Stored size: 272 Bytes

Contents

module Majestic
  module Api
    module Logger

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

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
majestic-api-1.4.2 lib/majestic/api/logger.rb
majestic-api-1.4.1 lib/majestic/api/logger.rb
majestic-api-1.4.0 lib/majestic/api/logger.rb