MongoDB C++ Driver
mongocxx-3.0.3
|
The interface that all user-defined loggers must implement. More...
#include <logger.hpp>
Public Member Functions | |
virtual void | operator() (log_level level, stdx::string_view domain, stdx::string_view message) noexcept=0 |
Handles a log message. More... | |
Protected Member Functions | |
logger () | |
Default constructor. | |
The interface that all user-defined loggers must implement.
|
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. |