mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
clang-format
This commit is contained in:
parent
08de642536
commit
6399e05209
@ -43,6 +43,9 @@ template class spdlog::sinks::rotating_file_sink<spdlog::details::null_mutex>;
|
|||||||
#include "spdlog/details/thread_pool-inl.h"
|
#include "spdlog/details/thread_pool-inl.h"
|
||||||
template class spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>;
|
template class spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>;
|
||||||
|
|
||||||
|
//
|
||||||
|
// color sinks
|
||||||
|
//
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "spdlog/sinks/wincolor_sink-inl.h"
|
#include "spdlog/sinks/wincolor_sink-inl.h"
|
||||||
template class spdlog::sinks::wincolor_sink<spdlog::details::console_mutex>;
|
template class spdlog::sinks::wincolor_sink<spdlog::details::console_mutex>;
|
||||||
@ -61,7 +64,7 @@ template class spdlog::sinks::ansicolor_stderr_sink<spdlog::details::console_mut
|
|||||||
template class spdlog::sinks::ansicolor_stderr_sink<spdlog::details::console_nullmutex>;
|
template class spdlog::sinks::ansicolor_stderr_sink<spdlog::details::console_nullmutex>;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// factory methods for color sinks
|
// factory methods for color loggers
|
||||||
#include "spdlog/sinks/stdout_color_sinks-inl.h"
|
#include "spdlog/sinks/stdout_color_sinks-inl.h"
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(
|
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(
|
||||||
const std::string &logger_name, color_mode mode);
|
const std::string &logger_name, color_mode mode);
|
||||||
@ -77,8 +80,9 @@ template std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<spdlog::async_f
|
|||||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
|
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
|
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
|
||||||
|
|
||||||
|
//
|
||||||
// stdout/stderr sinks
|
// stdout/stderr sinks
|
||||||
|
//
|
||||||
#include "spdlog/sinks/stdout_sinks-inl.h"
|
#include "spdlog/sinks/stdout_sinks-inl.h"
|
||||||
|
|
||||||
template class spdlog::sinks::stdout_sink_base<spdlog::details::console_mutex>;
|
template class spdlog::sinks::stdout_sink_base<spdlog::details::console_mutex>;
|
||||||
@ -90,7 +94,7 @@ template class spdlog::sinks::stdout_sink<spdlog::details::console_nullmutex>;
|
|||||||
template class spdlog::sinks::stderr_sink<spdlog::details::console_mutex>;
|
template class spdlog::sinks::stderr_sink<spdlog::details::console_mutex>;
|
||||||
template class spdlog::sinks::stderr_sink<spdlog::details::console_nullmutex>;
|
template class spdlog::sinks::stderr_sink<spdlog::details::console_nullmutex>;
|
||||||
|
|
||||||
// factory methods
|
// factory methods for stdout/stderr loggers
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stdout_logger_mt<spdlog::synchronous_factory>(const std::string &logger_name);
|
template std::shared_ptr<spdlog::logger> spdlog::stdout_logger_mt<spdlog::synchronous_factory>(const std::string &logger_name);
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stdout_logger_st<spdlog::synchronous_factory>(const std::string &logger_name);
|
template std::shared_ptr<spdlog::logger> spdlog::stdout_logger_st<spdlog::synchronous_factory>(const std::string &logger_name);
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stdout_logger_mt<spdlog::async_factory>(const std::string &logger_name);
|
template std::shared_ptr<spdlog::logger> spdlog::stdout_logger_mt<spdlog::async_factory>(const std::string &logger_name);
|
||||||
|
@ -22,7 +22,6 @@ TEST_CASE("stdout_mt", "[stdout]")
|
|||||||
spdlog::drop_all();
|
spdlog::drop_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TEST_CASE("stderr_st", "[stderr]")
|
TEST_CASE("stderr_st", "[stderr]")
|
||||||
{
|
{
|
||||||
auto l = spdlog::stderr_logger_st("test");
|
auto l = spdlog::stderr_logger_st("test");
|
||||||
@ -60,7 +59,6 @@ TEST_CASE("stdout_color_mt", "[stdout]")
|
|||||||
spdlog::drop_all();
|
spdlog::drop_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TEST_CASE("stderr_color_st", "[stderr]")
|
TEST_CASE("stderr_color_st", "[stderr]")
|
||||||
{
|
{
|
||||||
auto l = spdlog::stderr_color_st("test");
|
auto l = spdlog::stderr_color_st("test");
|
||||||
|
Loading…
Reference in New Issue
Block a user