2019-06-04 00:09:16 +03:00
|
|
|
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
|
2016-04-20 11:57:49 +03:00
|
|
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-06-24 01:32:39 +03:00
|
|
|
#include "fmt/fmt.h"
|
2018-04-29 01:35:49 +03:00
|
|
|
#include "spdlog/details/log_msg.h"
|
2016-04-20 11:57:49 +03:00
|
|
|
|
2018-03-09 15:26:33 +02:00
|
|
|
namespace spdlog {
|
2016-04-20 11:57:49 +03:00
|
|
|
|
|
|
|
class formatter
|
|
|
|
{
|
|
|
|
public:
|
2018-02-24 23:56:56 +01:00
|
|
|
virtual ~formatter() = default;
|
2019-08-28 18:46:09 +03:00
|
|
|
virtual void format(const details::log_msg &msg, memory_buf_t &dest) = 0;
|
2018-07-23 00:13:52 +03:00
|
|
|
virtual std::unique_ptr<formatter> clone() const = 0;
|
2016-04-20 11:57:49 +03:00
|
|
|
};
|
2018-03-09 15:26:33 +02:00
|
|
|
} // namespace spdlog
|