Class Mongo::Monitoring::SDAMLogSubscriber
In: lib/mongo/monitoring/sdam_log_subscriber.rb
Parent: Object

Subscribes to SDAM events and logs them.

@since 2.4.0

Methods

new   succeeded  

Included Modules

Loggable

Attributes

options  [R]  @return [ Hash ] options The options.

Public Class methods

Create the new log subscriber.

@example Create the log subscriber.

  SDAMLogSubscriber.new

@param [ Hash ] options The options.

@option options [ Logger ] :logger An optional custom logger.

@since 2.4.0

Public Instance methods

Handle the SDAM succeeded event.

@example Handle the event.

  subscriber.succeeded(event)

@param [ Event ] event The event.

@since 2.4.0

[Validate]