mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
factory functions namespace fix
This commit is contained in:
parent
74fec56927
commit
9e0c658b29
@ -83,7 +83,9 @@ mongocxx::instance mongo_sink<std::mutex>::instance_{};
|
||||
using mongo_sink_mt = mongo_sink<std::mutex>;
|
||||
using mongo_sink_st = mongo_sink<spdlog::details::null_mutex>;
|
||||
|
||||
template <typename Factory = spdlog::synchronous_factory>
|
||||
} // namespace sinks
|
||||
|
||||
template <typename Factory = spdlog::synchronous_factory>
|
||||
inline std::shared_ptr<logger>
|
||||
mongo_logger_mt(const std::string &logger_name, const std::string &db_name,
|
||||
const std::string &collection_name,
|
||||
@ -100,6 +102,6 @@ mongo_logger_st(const std::string &logger_name, const std::string &db_name,
|
||||
return Factory::template create<sinks::mongo_sink_st>(logger_name, db_name,
|
||||
collection_name, uri);
|
||||
}
|
||||
} // namespace sinks
|
||||
|
||||
} // namespace spdlog
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user