Classe: Mongo::Monitoring::SDAMLogSubscriber
- Herda:
-
Objeto
- Objeto
- Mongo::Monitoring::SDAMLogSubscriber
- Inclui:
- Logável
- Definido em:
- lib/mongo/monitoring/sdam_log_subscriber.rb
Visão geral
Assina eventos SDAM e os registra.
Subclasses conhecidas diretas
ServerClosedLogSubscriber, ServerDescriptionChangedLogSubscriber, ServerOpeningLogSubscriber, TopologyChangedLogSubscriber, TopologyClosedLogSubscriber, TopologyOpeningLogSubscriber
Resumo constante
Constantes incluídas do Loggable
Recolhimento do Resumo do atributo de instância
-
#opções ➤ Hash
Somente leitura
Opções As opções.
Recolhimento do Resumo do método de instância
-
#initialize(options = {}) ➤ SDAMLogSubscriber
construtor
Crie o novo assinante de registro.
-
# bem-sucedido(evento) ➤ Objeto
Gerencie o evento de sucesso do SDAM .
Métodos incluídos no Loggable
#log_debug, #log_error, #log_fatal, #log_info, #log_WARN, #logger
Detalhes do construtor
#initialize(options = {}) ➤ SDAMLogSubscriber
Crie o novo assinante de registro.
38 39 40 |
# File 'lib/mongo/monitoring/sdam_log_subscriber.rb', linha 38 def inicializar( = {}) @opções = end |
Detalhes do atributo da instância
#opções ➤ Hash (somente leitura)
Retorna as opções As opções.
26 27 28 |
# File 'lib/mongo/monitoring/sdam_log_subscriber.rb', linha 26 def @opções end |
Detalhes do método de instância
# bem-sucedido(evento) ➤ Objeto
Gerencie o evento de sucesso do SDAM .
50 51 52 |
# File 'lib/mongo/monitoring/sdam_log_subscriber.rb', linha 50 def bem-sucedido(Evento) log_event(Evento) se logger.debug? end |