mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
fixed issue #137
This commit is contained in:
parent
f36622553c
commit
b85662c536
@ -108,7 +108,7 @@ inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_
|
||||
|
||||
|
||||
template <typename Sink, typename... Args>
|
||||
inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_name, const Args&... args)
|
||||
inline std::shared_ptr<spdlog::logger> spdlog::create(const std::string& logger_name, Args&... args)
|
||||
{
|
||||
sink_ptr sink = std::make_shared<Sink>(args...);
|
||||
return details::registry::instance().create(logger_name, { sink });
|
||||
|
Loading…
Reference in New Issue
Block a user