mirror of https://github.com/gabime/spdlog.git
More template instantiations for static lib
parent
01f5efa1d9
commit
8b4eedb594
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright(c) 2015-present Gabi Melman & spdlog contributors.
|
||||||
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "spdlog/logger.h"
|
||||||
|
#include "spdlog/common.h"
|
||||||
|
|
||||||
|
namespace spdlog {
|
||||||
|
|
||||||
|
template<typename Factory>
|
||||||
|
SPDLOG_INLINE std::shared_ptr<logger> stdout_color_mt(const std::string &logger_name)
|
||||||
|
{
|
||||||
|
return Factory::template create<sinks::stdout_color_sink_mt>(logger_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename Factory>
|
||||||
|
SPDLOG_INLINE std::shared_ptr<logger> stdout_color_st(const std::string &logger_name)
|
||||||
|
{
|
||||||
|
return Factory::template create<sinks::stdout_color_sink_st>(logger_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename Factory>
|
||||||
|
SPDLOG_INLINE std::shared_ptr<logger> stderr_color_mt(const std::string &logger_name)
|
||||||
|
{
|
||||||
|
return Factory::template create<sinks::stderr_color_sink_mt>(logger_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename Factory>
|
||||||
|
SPDLOG_INLINE std::shared_ptr<logger> stderr_color_st(const std::string &logger_name)
|
||||||
|
{
|
||||||
|
return Factory::template create<sinks::stderr_color_sink_st>(logger_name);
|
||||||
|
}
|
||||||
|
} // namespace spdlog
|
Loading…
Reference in New Issue