MongoDB C++ Driver mongocxx-4.0.0
Loading...
Searching...
No Matches
mongocxx::v_noabi::logger Class Referenceabstract

#include <mongocxx/v_noabi/mongocxx/logger.hpp>

Description

The interface that all user-defined loggers must implement.

Public Member Functions

virtual void operator() (log_level level, bsoncxx::v_noabi::stdx::string_view domain, bsoncxx::v_noabi::stdx::string_view message) noexcept=0
 Handles a log message. User defined logger implementations may do whatever they wish when this is called, such as log the output to a file or send it to a remote server for analysis.
 

Protected Member Functions

 logger ()
 Default constructor.
 

Constructor & Destructor Documentation

◆ logger()

mongocxx::v_noabi::logger::logger ( )
protected

Default constructor.

Member Function Documentation

◆ operator()()

virtual void mongocxx::v_noabi::logger::operator() ( log_level level,
bsoncxx::v_noabi::stdx::string_view domain,
bsoncxx::v_noabi::stdx::string_view message )
pure virtualnoexcept

Handles a log message. User defined logger implementations may do whatever they wish when this is called, such as log the output to a file or send it to a remote server for analysis.

Parameters
levelThe log level of the current log message
domainThe domain of the current log message, such as 'client'
messageThe text of the current log message.

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