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