2019-10-13 18:08:37 +02:00
|
|
|
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
|
2016-02-10 00:58:03 +01:00
|
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-06-02 06:05:26 +02:00
|
|
|
#include "fmt/fmt.h"
|
|
|
|
#include "spdlog/details/log_msg.h"
|
2017-02-04 20:03:20 +01:00
|
|
|
|
2019-06-02 06:05:26 +02:00
|
|
|
namespace spdlog {
|
2016-02-10 00:58:03 +01:00
|
|
|
|
|
|
|
class formatter
|
|
|
|
{
|
|
|
|
public:
|
2019-06-02 06:05:26 +02:00
|
|
|
virtual ~formatter() = default;
|
2019-10-13 18:08:37 +02:00
|
|
|
virtual void format(const details::log_msg &msg, memory_buf_t &dest) = 0;
|
2019-06-02 06:05:26 +02:00
|
|
|
virtual std::unique_ptr<formatter> clone() const = 0;
|
2016-02-10 00:58:03 +01:00
|
|
|
};
|
2019-06-02 06:05:26 +02:00
|
|
|
} // namespace spdlog
|