libcryfs/vendor/spdlog/spdlog/formatter.h

19 lines
455 B
C
Raw Normal View History

2019-10-13 18:08:37 +02:00
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// 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 {
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;
};
2019-06-02 06:05:26 +02:00
} // namespace spdlog