OpenQuizz
Une application de gestion des contenus pédagogiques
CommandLogger Class Reference
Inheritance diagram for CommandLogger:
Collaboration diagram for CommandLogger:

Public Member Functions

def started (self, event)
 
def succeeded (self, event)
 
def failed (self, event)
 

Detailed Description

A simple listener that logs command events.

Listens for :class:`~pymongo.monitoring.CommandStartedEvent`,
:class:`~pymongo.monitoring.CommandSucceededEvent` and
:class:`~pymongo.monitoring.CommandFailedEvent` events and
logs them at the `INFO` severity level using :mod:`logging`.
.. versionadded:: 3.11

Member Function Documentation

◆ failed()

def failed (   self,
  event 
)
Abstract method to handle a `CommandFailedEvent`.

:Parameters:
  - `event`: An instance of :class:`CommandFailedEvent`.

Reimplemented from CommandListener.

◆ started()

def started (   self,
  event 
)
Abstract method to handle a `CommandStartedEvent`.

:Parameters:
  - `event`: An instance of :class:`CommandStartedEvent`.

Reimplemented from CommandListener.

◆ succeeded()

def succeeded (   self,
  event 
)
Abstract method to handle a `CommandSucceededEvent`.

:Parameters:
  - `event`: An instance of :class:`CommandSucceededEvent`.

Reimplemented from CommandListener.


The documentation for this class was generated from the following file: