spdlog/include/spdlog/formatter.h

21 lines
433 B
C
Raw Normal View History

2016-04-20 04:57:49 -04:00
//
// Copyright(c) 2015 Gabi Melman.
// 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;
2018-06-23 18:32:39 -04:00
virtual void format(const details::log_msg &msg, fmt::memory_buffer &dest) = 0;
2018-07-22 14:52:46 -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