mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 00:45:48 +08:00
Merge branch 'gabime:v1.x' into v1.x
This commit is contained in:
commit
baa3b1a07e
@ -43,7 +43,7 @@ public:
|
|||||||
~mongo_sink() { flush_(); }
|
~mongo_sink() { flush_(); }
|
||||||
|
|
||||||
protected:
|
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::document;
|
||||||
using bsoncxx::builder::stream::finalize;
|
using bsoncxx::builder::stream::finalize;
|
||||||
|
|
||||||
@ -61,14 +61,7 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void flush_() {}
|
void flush_() override {}
|
||||||
|
|
||||||
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) {}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static mongocxx::instance instance_;
|
static mongocxx::instance instance_;
|
||||||
|
Loading…
Reference in New Issue
Block a user