Sha256: 780290817a618ba10ce9cefc68eab57996e6930aa385ce570604b8da919d2334

Contents?: true

Size: 663 Bytes

Versions: 15

Compression:

Stored size: 663 Bytes

Contents

# encoding: utf-8
require "logstash/util/loggable"

module LogStash
  module Inputs
    module Azure
      class ErrorNotificationHandler
        include java.util.function.Consumer
        include LogStash::Util::Loggable

        def initialize
          @logger = self.logger
        end

        def accept(exception_received_event_args)
          @logger.error("Error with Event Processor Host. ",
            :host_name => exception_received_event_args.getHostname(),
            :action => exception_received_event_args.getAction(),
            :exception => exception_received_event_args.getException().toString())
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
logstash-input-azure_event_hubs-1.5.1 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.5.0 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.9 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.8 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.7 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.6 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.5 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.4 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.3 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.2 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.1 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.4.0 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.3.0 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.2.3 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.2.2 lib/logstash/inputs/error_notification_handler.rb