Replaced include <spdlog/..> with include "spdlog/.."

This commit is contained in:
gabime 2023-09-29 00:05:17 +03:00
parent a3934472c9
commit a0e631802c
25 changed files with 75 additions and 76 deletions

View File

@ -255,4 +255,4 @@
#include <mutex> #include <mutex>
// spdlog // spdlog
#include <spdlog/common.h> #include "spdlog/common.h"

View File

@ -17,7 +17,7 @@
// //
// Example: // Example:
// //
// #include <spdlog/sinks/dup_filter_sink.h> // #include "spdlog/sinks/dup_filter_sink.h"
// //
// int main() { // int main() {
// auto dup_filter = std::make_shared<dup_filter_sink_st>(std::chrono::seconds(5), // auto dup_filter = std::make_shared<dup_filter_sink_st>(std::chrono::seconds(5),

View File

@ -20,7 +20,7 @@
// If other units are needed (e.g. millis instead of double), include "fmt/chrono.h" and use // If other units are needed (e.g. millis instead of double), include "fmt/chrono.h" and use
// "duration_cast<..>(sw.elapsed())": // "duration_cast<..>(sw.elapsed())":
// //
// #include <spdlog/fmt/chrono.h> // #include "spdlog/fmt/chrono.h"
//.. //..
// using std::chrono::duration_cast; // using std::chrono::duration_cast;
// using std::chrono::milliseconds; // using std::chrono::milliseconds;

View File

@ -1,9 +1,9 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/async_logger.h> #include "spdlog/async_logger.h"
#include <spdlog/details/thread_pool.h> #include "spdlog/details/thread_pool.h"
#include <spdlog/sinks/sink.h> #include "spdlog/sinks/sink.h"
#include <memory> #include <memory>
#include <string> #include <string>

View File

@ -1,9 +1,9 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/cfg/helpers.h> #include "spdlog/cfg/helpers.h"
#include <spdlog/details/registry.h> #include "spdlog/details/registry.h"
#include <spdlog/spdlog.h> #include "spdlog/spdlog.h"
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>

View File

@ -1,7 +1,7 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/common.h> #include "spdlog/common.h"
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>

View File

@ -1,9 +1,9 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/details/file_helper.h> #include "spdlog/details/file_helper.h"
#include <spdlog/details/os.h> #include "spdlog/details/os.h"
#include <cerrno> #include <cerrno>
#include <cstdio> #include <cstdio>

View File

@ -1,8 +1,8 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/details/log_msg.h> #include "spdlog/details/log_msg.h"
#include <spdlog/details/os.h> #include "spdlog/details/os.h"
namespace spdlog { namespace spdlog {
namespace details { namespace details {

View File

@ -1,7 +1,7 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/details/log_msg_buffer.h> #include "spdlog/details/log_msg_buffer.h"
namespace spdlog { namespace spdlog {
namespace details { namespace details {

View File

@ -1,8 +1,8 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/details/os.h> #include "spdlog/details/os.h"
#include <algorithm> #include <algorithm>
#include <array> #include <array>
@ -16,7 +16,7 @@
#include <thread> #include <thread>
#ifdef _WIN32 #ifdef _WIN32
#include <spdlog/details/windows_include.h> #include "spdlog/details/windows_include.h"
#include <fileapi.h> // for FlushFileBuffers #include <fileapi.h> // for FlushFileBuffers
#include <io.h> // for _get_osfhandle, _isatty, _fileno #include <io.h> // for _get_osfhandle, _isatty, _fileno
#include <process.h> // for _get_pid #include <process.h> // for _get_pid

View File

@ -1,7 +1,7 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/details/periodic_worker.h> #include "spdlog/details/periodic_worker.h"
namespace spdlog { namespace spdlog {
namespace details { namespace details {

View File

@ -1,19 +1,18 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/details/registry.h> #include "spdlog/details/registry.h"
#include "spdlog/common.h"
#include <spdlog/common.h> #include "spdlog/details/periodic_worker.h"
#include <spdlog/details/periodic_worker.h> #include "spdlog/logger.h"
#include <spdlog/logger.h> #include "spdlog/pattern_formatter.h"
#include <spdlog/pattern_formatter.h>
#ifndef SPDLOG_DISABLE_DEFAULT_LOGGER #ifndef SPDLOG_DISABLE_DEFAULT_LOGGER
// support for the default stdout color logger // support for the default stdout color logger
#ifdef _WIN32 #ifdef _WIN32
#include <spdlog/sinks/wincolor_sink.h> #include "spdlog/sinks/wincolor_sink.h"
#else #else
#include <spdlog/sinks/ansicolor_sink.h> #include "spdlog/sinks/ansicolor_sink.h"
#endif #endif
#endif // SPDLOG_DISABLE_DEFAULT_LOGGER #endif // SPDLOG_DISABLE_DEFAULT_LOGGER

View File

@ -2,8 +2,8 @@
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <cassert> #include <cassert>
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/details/thread_pool.h> #include "spdlog/details/thread_pool.h"
namespace spdlog { namespace spdlog {
namespace details { namespace details {

View File

@ -4,7 +4,7 @@
#if !defined(SPDLOG_FMT_EXTERNAL) && !defined(SPDLOG_USE_STD_FORMAT) #if !defined(SPDLOG_FMT_EXTERNAL) && !defined(SPDLOG_USE_STD_FORMAT)
#include <spdlog/fmt/bundled/format-inl.h> #include "spdlog/fmt/bundled/format-inl.h"
FMT_BEGIN_NAMESPACE FMT_BEGIN_NAMESPACE
namespace detail { namespace detail {

View File

@ -1,9 +1,9 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/logger.h> #include "spdlog/logger.h"
#include <spdlog/pattern_formatter.h> #include "spdlog/pattern_formatter.h"
#include <spdlog/sinks/sink.h> #include "spdlog/sinks/sink.h"
#include <cstdio> #include <cstdio>
#include <mutex> #include <mutex>

View File

@ -1,13 +1,13 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/details/fmt_helper.h> #include "spdlog/details/fmt_helper.h"
#include <spdlog/details/log_msg.h> #include "spdlog/details/log_msg.h"
#include <spdlog/details/os.h> #include "spdlog/details/os.h"
#include <spdlog/fmt/fmt.h> #include "spdlog/fmt/fmt.h"
#include <spdlog/formatter.h> #include "spdlog/formatter.h"
#include <spdlog/pattern_formatter.h> #include "spdlog/pattern_formatter.h"
#include <spdlog/common.h> #include "spdlog/common.h"
#include <algorithm> #include <algorithm>
#include <array> #include <array>

View File

@ -1,10 +1,10 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/sinks/ansicolor_sink.h> #include "spdlog/sinks/ansicolor_sink.h"
#include <spdlog/details/os.h> #include "spdlog/details/os.h"
#include <spdlog/pattern_formatter.h> #include "spdlog/pattern_formatter.h"
namespace spdlog { namespace spdlog {
namespace sinks { namespace sinks {

View File

@ -1,9 +1,9 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/pattern_formatter.h> #include "spdlog/pattern_formatter.h"
#include <spdlog/sinks/base_sink.h> #include "spdlog/sinks/base_sink.h"
#include <memory> #include <memory>
#include <mutex> #include <mutex>

View File

@ -1,10 +1,10 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/sinks/basic_file_sink.h> #include "spdlog/sinks/basic_file_sink.h"
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/details/os.h> #include "spdlog/details/os.h"
namespace spdlog { namespace spdlog {
namespace sinks { namespace sinks {

View File

@ -1,12 +1,12 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/sinks/rotating_file_sink.h> #include "spdlog/sinks/rotating_file_sink.h"
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/details/file_helper.h> #include "spdlog/details/file_helper.h"
#include <spdlog/details/os.h> #include "spdlog/details/os.h"
#include <spdlog/fmt/fmt.h> #include "spdlog/fmt/fmt.h"
#include <cerrno> #include <cerrno>
#include <mutex> #include <mutex>

View File

@ -1,9 +1,9 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/sinks/sink.h> #include "spdlog/sinks/sink.h"
#include <spdlog/common.h> #include "spdlog/common.h"
bool spdlog::sinks::sink::should_log(spdlog::level msg_level) const { bool spdlog::sinks::sink::should_log(spdlog::level msg_level) const {
return msg_level >= level_.load(std::memory_order_relaxed); return msg_level >= level_.load(std::memory_order_relaxed);

View File

@ -1,11 +1,11 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/async.h> #include "spdlog/async.h"
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/details/synchronous_factory.h> #include "spdlog/details/synchronous_factory.h"
#include <spdlog/logger.h> #include "spdlog/logger.h"
#include <spdlog/sinks/stdout_color_sinks.h> #include "spdlog/sinks/stdout_color_sinks.h"
namespace spdlog { namespace spdlog {

View File

@ -2,13 +2,13 @@
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <memory> #include <memory>
#include <spdlog/pattern_formatter.h> #include "spdlog/pattern_formatter.h"
#include <spdlog/sinks/stdout_sinks.h> #include "spdlog/sinks/stdout_sinks.h"
#ifdef _WIN32 #ifdef _WIN32
// under windows using fwrite to non-binary stream results in \r\r\n (see issue #1675) // under windows using fwrite to non-binary stream results in \r\r\n (see issue #1675)
// so instead we use ::FileWrite // so instead we use ::FileWrite
#include <spdlog/details/windows_include.h> #include "spdlog/details/windows_include.h"
#ifndef _USING_V110_SDK71_ // fileapi.h doesn't exist in winxp #ifndef _USING_V110_SDK71_ // fileapi.h doesn't exist in winxp
#include <fileapi.h> // WriteFile (..) #include <fileapi.h> // WriteFile (..)
@ -16,7 +16,7 @@
#include <io.h> // _get_osfhandle(..) #include <io.h> // _get_osfhandle(..)
#include <stdio.h> // _fileno(..) #include <stdio.h> // _fileno(..)
#endif // WIN32 #endif // _WIN32
namespace spdlog { namespace spdlog {
@ -120,7 +120,7 @@ std::shared_ptr<logger> stderr_logger_st(const std::string &logger_name) {
} // namespace spdlog } // namespace spdlog
// template instantiations for stdout/stderr loggers // template instantiations for stdout/stderr loggers
#include <spdlog/details/console_globals.h> #include "spdlog/details/console_globals.h"
template class SPDLOG_API spdlog::sinks::stdout_sink_base<spdlog::details::console_mutex>; template class SPDLOG_API spdlog::sinks::stdout_sink_base<spdlog::details::console_mutex>;
template class SPDLOG_API spdlog::sinks::stdout_sink_base<spdlog::details::console_nullmutex>; template class SPDLOG_API spdlog::sinks::stdout_sink_base<spdlog::details::console_nullmutex>;
template class SPDLOG_API spdlog::sinks::stdout_sink<spdlog::details::console_mutex>; template class SPDLOG_API spdlog::sinks::stdout_sink<spdlog::details::console_mutex>;
@ -129,8 +129,8 @@ template class SPDLOG_API spdlog::sinks::stderr_sink<spdlog::details::console_mu
template class SPDLOG_API spdlog::sinks::stderr_sink<spdlog::details::console_nullmutex>; template class SPDLOG_API spdlog::sinks::stderr_sink<spdlog::details::console_nullmutex>;
// template instantiations for stdout/stderr factory functions // template instantiations for stdout/stderr factory functions
#include <spdlog/async.h> #include "spdlog/async.h"
#include <spdlog/details/synchronous_factory.h> #include "spdlog/details/synchronous_factory.h"
template SPDLOG_API std::shared_ptr<spdlog::logger> template SPDLOG_API std::shared_ptr<spdlog::logger>
spdlog::stdout_logger_mt<spdlog::synchronous_factory>(const std::string &logger_name); spdlog::stdout_logger_mt<spdlog::synchronous_factory>(const std::string &logger_name);

View File

@ -2,10 +2,10 @@
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#ifdef _WIN32 #ifdef _WIN32
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/details/windows_include.h> #include "spdlog/details/windows_include.h"
#include <spdlog/pattern_formatter.h> #include "spdlog/pattern_formatter.h"
#include <spdlog/sinks/wincolor_sink.h> #include "spdlog/sinks/wincolor_sink.h"
#include <wincon.h> #include <wincon.h>

View File

@ -1,9 +1,9 @@
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <spdlog/common.h> #include "spdlog/common.h"
#include <spdlog/pattern_formatter.h> #include "spdlog/pattern_formatter.h"
#include <spdlog/spdlog.h> #include "spdlog/spdlog.h"
namespace spdlog { namespace spdlog {