mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-13 17:22:06 +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>
|
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...);
|
sink_ptr sink = std::make_shared<Sink>(args...);
|
||||||
return details::registry::instance().create(logger_name, { sink });
|
return details::registry::instance().create(logger_name, { sink });
|
||||||
|
Loading…
Reference in New Issue
Block a user