Class: LogStash::Inputs::Azure::ErrorNotificationHandler

Inherits:
Object
  • Object
show all
Includes:
Util::Loggable
Defined in:
lib/logstash/inputs/error_notification_handler.rb

Instance Method Summary collapse

Constructor Details

#initializeErrorNotificationHandler

Returns a new instance of ErrorNotificationHandler.



11
12
13
# File 'lib/logstash/inputs/error_notification_handler.rb', line 11

def initialize
  @logger = self.logger
end

Instance Method Details

#accept(exception_received_event_args) ⇒ Object



15
16
17
18
19
20
# File 'lib/logstash/inputs/error_notification_handler.rb', line 15

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