Remove un needed functions and added override keyword

This commit is contained in:
Gabi Melman 2021-06-27 20:32:01 +03:00 committed by GitHub
parent 13d8b0f17f
commit 2a09f66a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ public:
~mongo_sink() { flush_(); }
protected:
void sink_it_(const details::log_msg &msg) {
void sink_it_(const details::log_msg &msg) override {
using bsoncxx::builder::stream::document;
using bsoncxx::builder::stream::finalize;
@ -61,14 +61,7 @@ protected:
}
}
void flush_() {}
void set_pattern_(const std::string &pattern) {
formatter_ = std::unique_ptr<spdlog::pattern_formatter>(
new spdlog::pattern_formatter(pattern, pattern_time_type::local, ""));
}
void set_formatter_(std::unique_ptr<spdlog::formatter> sink_formatter) {}
void flush_() override {}
private:
static mongocxx::instance instance_;