wip static-lib
This commit is contained in:
		@@ -16,7 +16,6 @@
 | 
				
			|||||||
#include <string>
 | 
					#include <string>
 | 
				
			||||||
#include <tuple>
 | 
					#include <tuple>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
namespace spdlog {
 | 
					namespace spdlog {
 | 
				
			||||||
namespace sinks {
 | 
					namespace sinks {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -54,8 +53,6 @@ SPDLOG_INLINE filename_t rotating_file_sink<Mutex>::calc_filename(const filename
 | 
				
			|||||||
    return fmt::to_string(w);
 | 
					    return fmt::to_string(w);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
template<typename Mutex>
 | 
					template<typename Mutex>
 | 
				
			||||||
SPDLOG_INLINE const filename_t &rotating_file_sink<Mutex>::filename() const
 | 
					SPDLOG_INLINE const filename_t &rotating_file_sink<Mutex>::filename() const
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,6 +2,7 @@
 | 
				
			|||||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
					// Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#pragma once
 | 
					#pragma once
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef SPDLOG_H
 | 
					#ifndef SPDLOG_H
 | 
				
			||||||
#include "spdlog/spdlog.h"
 | 
					#include "spdlog/spdlog.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
@@ -27,12 +28,10 @@ public:
 | 
				
			|||||||
    static filename_t calc_filename(const filename_t &filename, std::size_t index);
 | 
					    static filename_t calc_filename(const filename_t &filename, std::size_t index);
 | 
				
			||||||
    const filename_t &filename() const;
 | 
					    const filename_t &filename() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
protected:
 | 
					protected:
 | 
				
			||||||
    void sink_it_(const details::log_msg &msg) override;
 | 
					    void sink_it_(const details::log_msg &msg) override;
 | 
				
			||||||
    void flush_() override;
 | 
					    void flush_() override;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
    // Rotate files:
 | 
					    // Rotate files:
 | 
				
			||||||
    // log.txt -> log.1.txt
 | 
					    // log.txt -> log.1.txt
 | 
				
			||||||
@@ -76,7 +75,6 @@ inline std::shared_ptr<logger> rotating_logger_st(
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
} // namespace spdlog
 | 
					} // namespace spdlog
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef SPDLOG_HEADER_ONLY
 | 
					#ifdef SPDLOG_HEADER_ONLY
 | 
				
			||||||
#include "rotating_file_sink-inl.h"
 | 
					#include "rotating_file_sink-inl.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
@@ -16,6 +16,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include "spdlog/logger.h"
 | 
					#include "spdlog/logger.h"
 | 
				
			||||||
#include "spdlog/logger-inl.h"
 | 
					#include "spdlog/logger-inl.h"
 | 
				
			||||||
 | 
					template class std::shared_ptr<spdlog::sinks::sink>;
 | 
				
			||||||
 | 
					template class std::function<void(const std::string &err_msg)>;
 | 
				
			||||||
 | 
					template spdlog::logger::logger(std::string name, sinks_init_list::iterator begin, sinks_init_list::iterator end);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "spdlog/async_logger.h"
 | 
					#include "spdlog/async_logger.h"
 | 
				
			||||||
#include "spdlog/async_logger-inl.h"
 | 
					#include "spdlog/async_logger-inl.h"
 | 
				
			||||||
@@ -80,36 +83,22 @@ template FMT_API internal::locale_ref::locale_ref(const std::locale &loc);
 | 
				
			|||||||
template FMT_API std::locale internal::locale_ref::get<std::locale>() const;
 | 
					template FMT_API std::locale internal::locale_ref::get<std::locale>() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Explicit instantiations for char.
 | 
					// Explicit instantiations for char.
 | 
				
			||||||
 | 
					 | 
				
			||||||
template FMT_API char internal::thousands_sep_impl(locale_ref);
 | 
					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::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 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, double);
 | 
				
			||||||
 | 
					 | 
				
			||||||
template FMT_API int internal::char_traits<char>::format_float(char *, std::size_t, const char *, int, long 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 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>);
 | 
					template FMT_API format_context::iterator internal::vformat_to(internal::buffer &, string_view, basic_format_args<format_context>);
 | 
				
			||||||
 | 
					 | 
				
			||||||
template FMT_API void internal::sprintf_format(double, internal::buffer &, core_format_specs);
 | 
					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);
 | 
					template FMT_API void internal::sprintf_format(long double, internal::buffer &, core_format_specs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Explicit instantiations for wchar_t.
 | 
					// Explicit instantiations for wchar_t.
 | 
				
			||||||
 | 
					 | 
				
			||||||
template FMT_API wchar_t internal::thousands_sep_impl(locale_ref);
 | 
					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::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 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, 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 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>);
 | 
					template FMT_API std::wstring internal::vformat<wchar_t>(wstring_view, basic_format_args<wformat_context>);
 | 
				
			||||||
FMT_END_NAMESPACE
 | 
					FMT_END_NAMESPACE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user