19 #include <mongocxx/logger-fwd.hpp>
21 #include <bsoncxx/stdx/string_view.hpp>
22 #include <mongocxx/stdx.hpp>
24 #include <mongocxx/config/prelude.hpp>
70 stdx::string_view domain,
71 stdx::string_view message) noexcept = 0;
85 using ::mongocxx::v_noabi::to_string;
89 #include <mongocxx/config/postlude.hpp>
The interface that all user-defined loggers must implement.
Definition: logger.hpp:55
virtual void operator()(log_level level, stdx::string_view domain, stdx::string_view message) noexcept=0
Handles a log message.
logger()
Default constructor.
stdx::string_view to_string(log_level level)
Returns a stringification of the given log level.
log_level
The log level of a message passed to a mongocxx::v_noabi::logger.
Definition: logger.hpp:32
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19