Module: Majestic::Api::Logger

Included in:
Client
Defined in:
lib/majestic/api/logger.rb

Instance Method Summary collapse

Instance Method Details

#log(level, message) ⇒ Object



5
6
7
8
9
# File 'lib/majestic/api/logger.rb', line 5

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