2019-06-03 17:09:16 -04:00
|
|
|
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
|
2019-05-11 13:06:17 -04:00
|
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
2019-05-11 18:12:46 -04:00
|
|
|
|
2019-05-18 00:09:22 -04:00
|
|
|
#ifndef SPDLOG_COMPILED_LIB
|
|
|
|
#error Please define SPDLOG_COMPILED_LIB to compile this file.
|
2019-05-11 18:01:37 -04:00
|
|
|
#endif
|
2019-05-11 13:06:17 -04:00
|
|
|
|
2019-05-11 13:15:03 -04:00
|
|
|
#include <mutex>
|
2019-05-11 17:22:39 -04:00
|
|
|
#include <chrono>
|
2019-05-11 13:15:03 -04:00
|
|
|
|
2019-05-12 17:09:00 -04:00
|
|
|
#include "spdlog/details/null_mutex.h"
|
2019-05-12 10:05:14 -04:00
|
|
|
#include "spdlog/async.h"
|
2019-05-11 18:01:37 -04:00
|
|
|
|
2019-05-12 17:09:00 -04:00
|
|
|
#include "spdlog/spdlog-inl.h"
|
2019-05-11 13:15:03 -04:00
|
|
|
#include "spdlog/common-inl.h"
|
|
|
|
|
2019-05-11 06:20:11 -04:00
|
|
|
#include "spdlog/logger-inl.h"
|
2019-05-11 19:10:39 -04:00
|
|
|
template spdlog::logger::logger(std::string name, sinks_init_list::iterator begin, sinks_init_list::iterator end);
|
2019-05-11 06:20:11 -04:00
|
|
|
|
|
|
|
#include "spdlog/async_logger-inl.h"
|
|
|
|
#include "spdlog/details/log_msg-inl.h"
|
|
|
|
#include "spdlog/sinks/sink-inl.h"
|
|
|
|
|
|
|
|
#include "spdlog/sinks/base_sink-inl.h"
|
|
|
|
template class spdlog::sinks::base_sink<std::mutex>;
|
|
|
|
template class spdlog::sinks::base_sink<spdlog::details::null_mutex>;
|
|
|
|
|
2019-05-12 16:36:48 -04:00
|
|
|
#include "spdlog/sinks/basic_file_sink-inl.h"
|
|
|
|
template class spdlog::sinks::basic_file_sink<std::mutex>;
|
|
|
|
template class spdlog::sinks::basic_file_sink<spdlog::details::null_mutex>;
|
|
|
|
|
2019-05-11 18:43:30 -04:00
|
|
|
#include "spdlog/sinks/rotating_file_sink-inl.h"
|
|
|
|
template class spdlog::sinks::rotating_file_sink<std::mutex>;
|
|
|
|
template class spdlog::sinks::rotating_file_sink<spdlog::details::null_mutex>;
|
|
|
|
|
2019-05-11 06:20:11 -04:00
|
|
|
#include "spdlog/details/registry-inl.h"
|
|
|
|
|
|
|
|
#include "spdlog/details/os-inl.h"
|
|
|
|
#include "spdlog/details/periodic_worker-inl.h"
|
|
|
|
#include "spdlog/details/file_helper-inl.h"
|
|
|
|
#include "spdlog/details/pattern_formatter-inl.h"
|
|
|
|
|
|
|
|
#include "spdlog/details/thread_pool-inl.h"
|
|
|
|
template class spdlog::details::mpmc_blocking_queue<spdlog::details::async_msg>;
|
|
|
|
|
2019-05-12 10:05:14 -04:00
|
|
|
#ifdef _WIN32
|
2019-05-12 08:32:54 -04:00
|
|
|
#include "spdlog/sinks/wincolor_sink-inl.h"
|
|
|
|
template class spdlog::sinks::wincolor_sink<spdlog::details::console_stdout, spdlog::details::console_mutex>;
|
|
|
|
template class spdlog::sinks::wincolor_sink<spdlog::details::console_stdout, spdlog::details::console_nullmutex>;
|
|
|
|
template class spdlog::sinks::wincolor_sink<spdlog::details::console_stderr, spdlog::details::console_mutex>;
|
|
|
|
template class spdlog::sinks::wincolor_sink<spdlog::details::console_stderr, spdlog::details::console_nullmutex>;
|
2019-05-12 10:05:14 -04:00
|
|
|
#else
|
|
|
|
#include "spdlog/sinks/ansicolor_sink-inl.h"
|
|
|
|
template class spdlog::sinks::ansicolor_sink<spdlog::details::console_stdout, spdlog::details::console_mutex>;
|
|
|
|
template class spdlog::sinks::ansicolor_sink<spdlog::details::console_stdout, spdlog::details::console_nullmutex>;
|
|
|
|
template class spdlog::sinks::ansicolor_sink<spdlog::details::console_stderr, spdlog::details::console_mutex>;
|
|
|
|
template class spdlog::sinks::ansicolor_sink<spdlog::details::console_stderr, spdlog::details::console_nullmutex>;
|
2019-05-12 08:32:54 -04:00
|
|
|
#endif
|
|
|
|
|
2019-05-12 10:05:14 -04:00
|
|
|
#include "spdlog/sinks/stdout_color_sinks-inl.h"
|
2019-06-03 17:09:16 -04:00
|
|
|
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(
|
|
|
|
const std::string &logger_name, color_mode mode);
|
|
|
|
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<spdlog::synchronous_factory>(
|
|
|
|
const std::string &logger_name, color_mode mode);
|
|
|
|
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::synchronous_factory>(
|
|
|
|
const std::string &logger_name, color_mode mode);
|
|
|
|
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::synchronous_factory>(
|
|
|
|
const std::string &logger_name, color_mode mode);
|
2019-05-24 05:33:14 -04:00
|
|
|
|
|
|
|
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
|
|
|
|
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<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);
|
2019-05-11 17:22:39 -04:00
|
|
|
|
2019-05-11 17:50:43 -04:00
|
|
|
// Slightly modified version of fmt lib's format.cc source file.
|
2019-05-11 17:43:58 -04:00
|
|
|
// Copyright (c) 2012 - 2016, Victor Zverovich
|
|
|
|
// All rights reserved.
|
|
|
|
|
|
|
|
#if !defined(SPDLOG_FMT_EXTERNAL)
|
|
|
|
#include "spdlog/fmt/bundled/format-inl.h"
|
|
|
|
|
|
|
|
FMT_BEGIN_NAMESPACE
|
|
|
|
template struct internal::basic_data<void>;
|
|
|
|
template FMT_API internal::locale_ref::locale_ref(const std::locale &loc);
|
|
|
|
template FMT_API std::locale internal::locale_ref::get<std::locale>() const;
|
|
|
|
|
|
|
|
// Explicit instantiations for char.
|
|
|
|
template FMT_API char internal::thousands_sep_impl(locale_ref);
|
|
|
|
template FMT_API void internal::basic_buffer<char>::append(const char *, const char *);
|
|
|
|
template FMT_API void internal::arg_map<format_context>::init(const basic_format_args<format_context> &args);
|
|
|
|
template FMT_API int internal::char_traits<char>::format_float(char *, std::size_t, const char *, int, double);
|
|
|
|
template FMT_API int internal::char_traits<char>::format_float(char *, std::size_t, const char *, int, long double);
|
|
|
|
template FMT_API std::string internal::vformat<char>(string_view, basic_format_args<format_context>);
|
|
|
|
template FMT_API format_context::iterator internal::vformat_to(internal::buffer &, string_view, basic_format_args<format_context>);
|
2019-06-14 13:44:46 -04:00
|
|
|
template FMT_API void internal::sprintf_format(double, internal::buffer &, core_format_specs);
|
|
|
|
template FMT_API void internal::sprintf_format(long double, internal::buffer &, core_format_specs);
|
2019-05-11 17:43:58 -04:00
|
|
|
|
|
|
|
// Explicit instantiations for wchar_t.
|
|
|
|
template FMT_API wchar_t internal::thousands_sep_impl(locale_ref);
|
|
|
|
template FMT_API void internal::basic_buffer<wchar_t>::append(const wchar_t *, const wchar_t *);
|
|
|
|
template FMT_API void internal::arg_map<wformat_context>::init(const basic_format_args<wformat_context> &);
|
|
|
|
template FMT_API int internal::char_traits<wchar_t>::format_float(wchar_t *, std::size_t, const wchar_t *, int, double);
|
|
|
|
template FMT_API int internal::char_traits<wchar_t>::format_float(wchar_t *, std::size_t, const wchar_t *, int, long double);
|
|
|
|
template FMT_API std::wstring internal::vformat<wchar_t>(wstring_view, basic_format_args<wformat_context>);
|
|
|
|
FMT_END_NAMESPACE
|
2019-05-11 17:50:43 -04:00
|
|
|
|
2019-05-18 00:09:22 -04:00
|
|
|
#endif
|