mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Relative include paths in headers
This commit is contained in:
parent
c1ffe29b7e
commit
a3934472c9
@ -14,9 +14,9 @@
|
||||
// This is because each message in the queue holds a shared_ptr to the
|
||||
// originating logger.
|
||||
|
||||
#include <spdlog/async_logger.h>
|
||||
#include <spdlog/details/registry.h>
|
||||
#include <spdlog/details/thread_pool.h>
|
||||
#include "async_logger.h"
|
||||
#include "details/registry.h"
|
||||
#include "details/thread_pool.h"
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
@ -12,9 +12,9 @@
|
||||
// 2. Push a new copy of the message to a queue (or block the caller until
|
||||
// space is available in the queue)
|
||||
// Upon destruction, logs all remaining messages in the queue before
|
||||
// destructing..
|
||||
// destructing
|
||||
|
||||
#include <spdlog/logger.h>
|
||||
#include "logger.h"
|
||||
|
||||
namespace spdlog {
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
|
||||
#pragma once
|
||||
#include <spdlog/cfg/helpers.h>
|
||||
#include <spdlog/details/registry.h>
|
||||
#include "helpers.h"
|
||||
#include "../details/registry.h"
|
||||
|
||||
//
|
||||
// Init log levels using each argv entry that starts with "SPDLOG_LEVEL="
|
||||
|
@ -2,9 +2,9 @@
|
||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
|
||||
#pragma once
|
||||
#include <spdlog/cfg/helpers.h>
|
||||
#include <spdlog/details/os.h>
|
||||
#include <spdlog/details/registry.h>
|
||||
#include "helpers.h"
|
||||
#include "../details/os.h"
|
||||
#include "../details/registry.h"
|
||||
|
||||
//
|
||||
// Init levels and patterns from env variables SPDLOG_LEVEL
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <spdlog/common.h>
|
||||
#include "../common.h"
|
||||
#include <unordered_map>
|
||||
|
||||
namespace spdlog {
|
||||
|
@ -2,8 +2,8 @@
|
||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
|
||||
#pragma once
|
||||
#include <spdlog/details/null_mutex.h>
|
||||
#include <spdlog/tweakme.h>
|
||||
#include "details/null_mutex.h"
|
||||
#include "tweakme.h"
|
||||
|
||||
#include <array>
|
||||
#include <atomic>
|
||||
@ -51,13 +51,13 @@
|
||||
#define SPDLOG_API
|
||||
#endif
|
||||
|
||||
#include <spdlog/fmt/fmt.h>
|
||||
#include "fmt/fmt.h"
|
||||
|
||||
#if !defined(SPDLOG_USE_STD_FORMAT) && \
|
||||
FMT_VERSION >= 80000 // backward compatibility with fmt versions older than 8
|
||||
#define SPDLOG_FMT_RUNTIME(format_string) fmt::runtime(format_string)
|
||||
#if defined(SPDLOG_WCHAR_FILENAMES)
|
||||
#include <spdlog/fmt/xchar.h>
|
||||
#include "fmt/xchar.h"
|
||||
#endif
|
||||
#else
|
||||
#define SPDLOG_FMT_RUNTIME(format_string) format_string
|
||||
|
@ -6,10 +6,10 @@
|
||||
// Helper RAII over winsock udp client socket.
|
||||
// Will throw on construction if socket creation failed.
|
||||
|
||||
#include "../common.h"
|
||||
#include "os.h"
|
||||
#include "windows_include.h"
|
||||
#include "../common.h"
|
||||
|
||||
#include <spdlog/details/windows_include.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
|
@ -6,7 +6,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cctype>
|
||||
#include <spdlog/common.h>
|
||||
#include "../common.h"
|
||||
|
||||
#if defined(__has_include)
|
||||
#if __has_include(<version>)
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#if !defined(SPDLOG_USE_STD_FORMAT)
|
||||
#if !defined(SPDLOG_FMT_EXTERNAL)
|
||||
#include <spdlog/fmt/bundled/chrono.h>
|
||||
#include "../fmt/bundled/chrono.h"
|
||||
#else
|
||||
#include <fmt/chrono.h>
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#if !defined(SPDLOG_USE_STD_FORMAT)
|
||||
#if !defined(SPDLOG_FMT_EXTERNAL)
|
||||
#include <spdlog/fmt/bundled/compile.h>
|
||||
#include "../fmt/bundled/compile.h"
|
||||
#else
|
||||
#include <fmt/compile.h>
|
||||
#endif
|
||||
|
@ -13,8 +13,8 @@
|
||||
#if defined(SPDLOG_USE_STD_FORMAT) // SPDLOG_USE_STD_FORMAT is defined - use std::format
|
||||
#include <format>
|
||||
#elif !defined(SPDLOG_FMT_EXTERNAL)
|
||||
#include <spdlog/fmt/bundled/core.h>
|
||||
#include <spdlog/fmt/bundled/format.h>
|
||||
#include "bundled/core.h"
|
||||
#include "bundled/format.h"
|
||||
#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/format.h>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#if !defined(SPDLOG_USE_STD_FORMAT)
|
||||
#if !defined(SPDLOG_FMT_EXTERNAL)
|
||||
#include <spdlog/fmt/bundled/ostream.h>
|
||||
#include "../fmt/bundled/ostream.h"
|
||||
#else
|
||||
#include <fmt/ostream.h>
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#if !defined(SPDLOG_USE_STD_FORMAT)
|
||||
#if !defined(SPDLOG_FMT_EXTERNAL)
|
||||
#include <spdlog/fmt/bundled/ranges.h>
|
||||
#include "../fmt/bundled/ranges.h"
|
||||
#else
|
||||
#include <fmt/ranges.h>
|
||||
#endif
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#if !defined(SPDLOG_USE_STD_FORMAT)
|
||||
#if !defined(SPDLOG_FMT_EXTERNAL)
|
||||
#include <spdlog/fmt/bundled/std.h>
|
||||
#include "../fmt/bundled/std.h"
|
||||
#else
|
||||
#include <fmt/std.h>
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#if !defined(SPDLOG_USE_STD_FORMAT)
|
||||
#if !defined(SPDLOG_FMT_EXTERNAL)
|
||||
#include <spdlog/fmt/bundled/xchar.h>
|
||||
#include "../fmt/bundled/xchar.h"
|
||||
#else
|
||||
#include <fmt/xchar.h>
|
||||
#endif
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <spdlog/details/log_msg.h>
|
||||
#include <spdlog/fmt/fmt.h>
|
||||
#include "details/log_msg.h"
|
||||
#include "fmt/fmt.h"
|
||||
|
||||
namespace spdlog {
|
||||
|
||||
|
@ -14,9 +14,9 @@
|
||||
// The use of private formatter per sink provides the opportunity to cache some
|
||||
// formatted data, and support for different format per sink.
|
||||
|
||||
#include <spdlog/common.h>
|
||||
#include <spdlog/details/log_msg.h>
|
||||
#include <spdlog/sinks/sink.h>
|
||||
#include "common.h"
|
||||
#include "details/log_msg.h"
|
||||
#include "sinks/sink.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <vector>
|
||||
|
@ -3,10 +3,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <spdlog/common.h>
|
||||
#include <spdlog/details/log_msg.h>
|
||||
#include <spdlog/details/os.h>
|
||||
#include <spdlog/formatter.h>
|
||||
#include "common.h"
|
||||
#include "details/log_msg.h"
|
||||
#include "details/os.h"
|
||||
#include "formatter.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <ctime>
|
||||
|
@ -9,11 +9,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <spdlog/common.h>
|
||||
#include <spdlog/details/registry.h>
|
||||
#include <spdlog/details/synchronous_factory.h>
|
||||
#include <spdlog/logger.h>
|
||||
#include <spdlog/version.h>
|
||||
#include "common.h"
|
||||
#include "logger.h"
|
||||
#include "version.h"
|
||||
#include "details/registry.h"
|
||||
#include "details/synchronous_factory.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
|
@ -4,7 +4,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <spdlog/fmt/fmt.h>
|
||||
#include "fmt/fmt.h"
|
||||
|
||||
// Stopwatch support for spdlog (using std::chrono::steady_clock).
|
||||
// Displays elapsed seconds since construction as double.
|
||||
|
Loading…
Reference in New Issue
Block a user