1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-03-31 10:22:41 +08:00

Removed fmt wrapper files

This commit is contained in:
gabime 2024-01-12 15:52:32 +02:00
parent 45b100c677
commit a3e05332b0
11 changed files with 4 additions and 97 deletions

View File

@ -199,13 +199,7 @@ set(SPDLOG_HEADERS
"include/spdlog/details/udp_client.h"
"include/spdlog/details/windows_include.h"
"include/spdlog/fmt/bin_to_hex.h"
"include/spdlog/fmt/chrono.h"
"include/spdlog/fmt/compile.h"
"include/spdlog/fmt/fmt.h"
"include/spdlog/fmt/ostr.h"
"include/spdlog/fmt/ranges.h"
"include/spdlog/fmt/std.h"
"include/spdlog/fmt/xchar.h"
"include/spdlog/sinks/android_sink.h"
"include/spdlog/sinks/ansicolor_sink.h"
"include/spdlog/sinks/base_sink.h"

View File

@ -194,7 +194,7 @@ void binary_example() {
// Log a vector of numbers
#ifndef SPDLOG_USE_STD_FORMAT
#include "spdlog/fmt/ranges.h"
#include "fmt/ranges.h"
void vector_example() {
std::vector<int> vec = {1, 2, 3};
spdlog::info("Vector example: {}", vec);

View File

@ -1,14 +0,0 @@
//
// Copyright(c) 2016 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
//
// include bundled or external copy of fmtlib's chrono support
//
#include <spdlog/tweakme.h>
#if !defined(SPDLOG_USE_STD_FORMAT)
#include <fmt/chrono.h>
#endif

View File

@ -1,14 +0,0 @@
//
// Copyright(c) 2016 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
//
// include bundled or external copy of fmtlib's compile-time support
//
#include <spdlog/tweakme.h>
#if !defined(SPDLOG_USE_STD_FORMAT)
#include <fmt/compile.h>
#endif

View File

@ -14,6 +14,5 @@
#if defined(SPDLOG_USE_STD_FORMAT) // use std::format
#include <format>
#else
#include <fmt/core.h>
#include <fmt/format.h>
#include "fmt/format.h"
#endif

View File

@ -1,14 +0,0 @@
//
// Copyright(c) 2016 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
//
// include bundled or external copy of fmtlib's ostream support
//
#include <spdlog/tweakme.h>
#if !defined(SPDLOG_USE_STD_FORMAT)
#include <fmt/ostream.h>
#endif

View File

@ -1,14 +0,0 @@
//
// Copyright(c) 2016 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
//
// include bundled or external copy of fmtlib's ranges support
//
#include <spdlog/tweakme.h>
#if !defined(SPDLOG_USE_STD_FORMAT)
#include <fmt/ranges.h>
#endif

View File

@ -1,15 +0,0 @@
//
// Copyright(c) 2016 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
//
// include bundled or external copy of fmtlib's std support (for formatting e.g.
// std::filesystem::path, std::thread::id, std::monostate, std::variant, ...)
//
#include <spdlog/tweakme.h>
#if !defined(SPDLOG_USE_STD_FORMAT)
#include <fmt/std.h>
#endif

View File

@ -1,14 +0,0 @@
//
// Copyright(c) 2016 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
#pragma once
//
// include bundled or external copy of fmtlib's xchar support
//
#include <spdlog/tweakme.h>
#if !defined(SPDLOG_USE_STD_FORMAT)
#include <fmt/xchar.h>
#endif

View File

@ -16,8 +16,7 @@
#include "../details/null_mutex.h"
#include "../details/os.h"
#include "../details/synchronous_factory.h"
#include "../fmt/chrono.h"
#include "../fmt/fmt.h"
#include "fmt/chrono.h"
#include "base_sink.h"
namespace spdlog {

View File

@ -11,7 +11,7 @@
#include "spdlog/common.h"
#include "spdlog/details/file_helper.h"
#include "spdlog/details/os.h"
#include "spdlog/fmt/fmt.h"
//#include "spdlog/fmt/fmt.h"
namespace spdlog {
namespace sinks {