mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +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