mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
7cdd65075c
The meaning of using quotes to #include is implementation defined, so it may or not may be what we want. At least POSIX (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html) says: "headers whose names are enclosed in double-quotes ( "" ) shall be searched for first in the directory of the file with the #include line", so not what we want since "spdlog" ends up twice in the path.
19 lines
462 B
C++
19 lines
462 B
C++
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
#pragma once
|
|
|
|
#include <spdlog/fmt/fmt.h>
|
|
#include <spdlog/details/log_msg.h>
|
|
|
|
namespace spdlog {
|
|
|
|
class formatter
|
|
{
|
|
public:
|
|
virtual ~formatter() = default;
|
|
virtual void format(const details::log_msg &msg, memory_buf_t &dest) = 0;
|
|
virtual std::unique_ptr<formatter> clone() const = 0;
|
|
};
|
|
} // namespace spdlog
|