Module: Alephant::Publisher::Request::LogHelper
- Includes:
- Logger
- Included in:
- Connection, DataMapperFactory
- Defined in:
- lib/alephant/publisher/request/log_helper.rb
Instance Method Summary collapse
Instance Method Details
#log_error_with_metric(e, method, message, metric = nil, metric_count = 1) ⇒ Object
8 9 10 11 |
# File 'lib/alephant/publisher/request/log_helper.rb', line 8 def log_error_with_metric(e, method, , metric = nil, metric_count = 1) logger.error "Publisher::Request::#{method}: '#{e.class}(#{e.})' exception raised for: #{}" logger.metric(:name => metric, :unit => "Count", :value => metric_count) unless metric.nil? end |