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, ) if (self.respond_to?(:verbose) && self.verbose) (defined?(Rails) && Rails.logger) ? Rails.logger.send(level, ) : puts() end end |