mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
Removed stdout_sinks from spdlog.cpp for faster library compile time
This commit is contained in:
parent
f03eaaaf33
commit
6e83abdbf2
@ -3,10 +3,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef SPDLOG_HEADER_ONLY
|
|
||||||
#include "spdlog/sinks/stdout_sinks.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "spdlog/details/console_globals.h"
|
#include "spdlog/details/console_globals.h"
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
@ -71,6 +71,5 @@ std::shared_ptr<logger> stderr_logger_st(const std::string &logger_name);
|
|||||||
|
|
||||||
} // namespace spdlog
|
} // namespace spdlog
|
||||||
|
|
||||||
#ifdef SPDLOG_HEADER_ONLY
|
|
||||||
#include "stdout_sinks-inl.h"
|
#include "stdout_sinks-inl.h"
|
||||||
#endif
|
|
||||||
|
@ -80,30 +80,6 @@ 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
|
|
||||||
//
|
|
||||||
#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_nullmutex>;
|
|
||||||
|
|
||||||
template class spdlog::sinks::stdout_sink<spdlog::details::console_mutex>;
|
|
||||||
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_nullmutex>;
|
|
||||||
|
|
||||||
// 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_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_st<spdlog::async_factory>(const std::string &logger_name);
|
|
||||||
|
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_logger_mt<spdlog::synchronous_factory>(const std::string &logger_name);
|
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st<spdlog::synchronous_factory>(const std::string &logger_name);
|
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_logger_mt<spdlog::async_factory>(const std::string &logger_name);
|
|
||||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st<spdlog::async_factory>(const std::string &logger_name);
|
|
||||||
|
|
||||||
// Slightly modified version of fmt lib's format.cc source file.
|
// Slightly modified version of fmt lib's format.cc source file.
|
||||||
// Copyright (c) 2012 - 2016, Victor Zverovich
|
// Copyright (c) 2012 - 2016, Victor Zverovich
|
||||||
|
Loading…
Reference in New Issue
Block a user