Module: Kelbim::Logger::ClientHelper
- Included in:
- Client, ELBWrapper::LoadBalancerCollection, ELBWrapper::LoadBalancerCollection::LoadBalancer, ELBWrapper::LoadBalancerCollection::LoadBalancer::ListenerCollection, ELBWrapper::LoadBalancerCollection::LoadBalancer::ListenerCollection::Listener, ELBWrapper::LoadBalancerCollection::LoadBalancer::ListenerCollection::Listener::PolicyCollection, ELBWrapper::LoadBalancerCollection::LoadBalancer::ListenerCollection::Listener::PolicyCollection::Policy
- Defined in:
- lib/kelbim/logger.rb
Instance Method Summary collapse
Instance Method Details
#log(level, message, color, log_id = nil) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/kelbim/logger.rb', line 24 def log(level, , color, log_id = nil) = "[#{level.to_s.upcase}] #{}" unless level == :info << ": #{log_id}" if log_id << ' (dry-run)' if @options && @options.dry_run logger = (@options && @options.logger) || Kelbim::Logger.instance logger.send(level, .send(color)) end |