Module: Miam::Logger::Helper
- Included in:
- Client, Driver, PasswordManager
- Defined in:
- lib/miam/logger.rb
Instance Method Summary collapse
Instance Method Details
#log(level, message, log_options = {}) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/miam/logger.rb', line 19 def log(level, , = {}) = "[#{level.to_s.upcase}] #{}" unless level == :info << ' (dry-run)' if @options[:dry_run] = .send([:color]) if [:color] logger = @options[:logger] || Miam::Logger.instance logger.send(level, ) end |