Sha256: dee9df33202cf01bd9eb2326544c68562b39a158f0ef28d6898fcb8e7f5252a5

Contents?: true

Size: 686 Bytes

Versions: 10

Compression:

Stored size: 686 Bytes

Contents

# encoding: utf-8
require "logstash/util/loggable"
java_import java.util.function.Consumer

module LogStash
  module Inputs
    module Azure
      class ErrorNotificationHandler
        include 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

10 entries across 10 versions & 1 rubygems

Version Path
logstash-input-azure_event_hubs-1.2.1 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.2.0 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.1.4 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.1.3 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.1.2 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.1.1 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.1.0 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.0.4 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.0.3 lib/logstash/inputs/error_notification_handler.rb
logstash-input-azure_event_hubs-1.0.1 lib/logstash/inputs/error_notification_handler.rb