Class: LogStash::Inputs::Azure::ErrorNotificationHandler
- Inherits:
-
Object
- Object
- LogStash::Inputs::Azure::ErrorNotificationHandler
- Includes:
- Util::Loggable
- Defined in:
- lib/logstash/inputs/error_notification_handler.rb
Instance Method Summary collapse
- #accept(exception_received_event_args) ⇒ Object
-
#initialize ⇒ ErrorNotificationHandler
constructor
A new instance of ErrorNotificationHandler.
Constructor Details
#initialize ⇒ ErrorNotificationHandler
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 |