mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Added missing standard header includes.
This commit is contained in:
parent
196689f720
commit
077c3095eb
@ -20,6 +20,8 @@
|
||||
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <initializer_list>
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <exception>
|
||||
|
||||
//visual studio does not support noexcept yet
|
||||
#ifndef _MSC_VER
|
||||
@ -94,4 +95,4 @@ private:
|
||||
|
||||
};
|
||||
|
||||
} //spdlog
|
||||
} //spdlog
|
||||
|
@ -23,8 +23,12 @@
|
||||
#include <spdlog/formatter.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
#include <exception>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
namespace spdlog
|
||||
|
@ -11,6 +11,10 @@
|
||||
#include <spdlog/details/async_log_helper.h>
|
||||
#include <spdlog/async_logger.h>
|
||||
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
|
||||
template<class It>
|
||||
inline spdlog::async_logger::async_logger(const std::string& logger_name,
|
||||
|
@ -13,9 +13,10 @@
|
||||
#include <spdlog/details/os.h>
|
||||
#include <spdlog/details/log_msg.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <cstdio>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -9,6 +9,9 @@
|
||||
#include <spdlog/common.h>
|
||||
#include <spdlog/logger.h>
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
// Line logger class - aggregates operator<< calls to fast ostream
|
||||
// and logs upon destruction
|
||||
|
||||
|
@ -8,7 +8,8 @@
|
||||
#include <spdlog/common.h>
|
||||
#include <spdlog/details/format.h>
|
||||
|
||||
#include <thread>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -7,6 +7,10 @@
|
||||
|
||||
#include <spdlog/logger.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
// create logger with given name, sinks and the default pattern formatter
|
||||
// all other ctors will call this one
|
||||
template<class It>
|
||||
|
@ -46,6 +46,7 @@ Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
#include <spdlog/common.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <utility>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -6,9 +6,10 @@
|
||||
|
||||
#include <spdlog/common.h>
|
||||
|
||||
#include <string>
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
#ifdef _WIN32
|
||||
# ifndef WIN32_LEAN_AND_MEAN
|
||||
@ -24,6 +25,7 @@
|
||||
#include <sys/syscall.h> //Use gettid() syscall under linux to get thread id
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <chrono>
|
||||
#else
|
||||
#include <thread>
|
||||
#endif
|
||||
|
@ -9,12 +9,14 @@
|
||||
#include <spdlog/details/log_msg.h>
|
||||
#include <spdlog/details/os.h>
|
||||
|
||||
#include <string>
|
||||
#include <chrono>
|
||||
#include <ctime>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -15,10 +15,12 @@
|
||||
#include <spdlog/async_logger.h>
|
||||
#include <spdlog/common.h>
|
||||
|
||||
#include <string>
|
||||
#include <mutex>
|
||||
#include <unordered_map>
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -14,6 +14,11 @@
|
||||
#include <spdlog/sinks/stdout_sinks.h>
|
||||
#include <spdlog/sinks/syslog_sink.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
inline void spdlog::register_logger(std::shared_ptr<logger> logger)
|
||||
{
|
||||
return details::registry::instance().register_logger(logger);
|
||||
|
@ -8,6 +8,8 @@
|
||||
#include <spdlog/details/log_msg.h>
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -18,6 +18,8 @@
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <atomic>
|
||||
#include <string>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include <android/log.h>
|
||||
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -15,9 +15,7 @@
|
||||
#include <spdlog/common.h>
|
||||
#include <spdlog/details/log_msg.h>
|
||||
|
||||
#include <string>
|
||||
#include <mutex>
|
||||
#include <atomic>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -10,7 +10,12 @@
|
||||
#include <spdlog/details/file_helper.h>
|
||||
#include <spdlog/details/format.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
#include <ostream>
|
||||
#include <mutex>
|
||||
#include <memory>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <spdlog/details/null_mutex.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
namespace spdlog
|
||||
|
@ -12,6 +12,11 @@
|
||||
#include <spdlog/common.h>
|
||||
#include <spdlog/logger.h>
|
||||
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
#include <chrono>
|
||||
#include <string>
|
||||
|
||||
namespace spdlog
|
||||
{
|
||||
// Return an existing logger or nullptr if a logger with such name doesn't exist.
|
||||
|
Loading…
Reference in New Issue
Block a user