|
MongoDB C++ Driver mongocxx-3.11.1
|
#include <mongocxx/v_noabi/mongocxx/logger.hpp>
The interface that all user-defined loggers must implement.
Public Member Functions | |
| virtual void | operator() (log_level level, stdx::string_view domain, 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. | |
|
protected |
Default constructor.
|
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.
| level | The log level of the current log message |
| domain | The domain of the current log message, such as 'client' |
| message | The text of the current log message. |