formatter.h 463 B

1234567891011121314151617
  1. // Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
  2. // Distributed under the MIT License (http://opensource.org/licenses/MIT)
  3. #pragma once
  4. #include <spdlog/details/log_msg.h>
  5. #include <spdlog/fmt/fmt.h>
  6. namespace spdlog {
  7. class formatter {
  8. public:
  9. virtual ~formatter() = default;
  10. virtual void format(const details::log_msg &msg, memory_buf_t &dest) = 0;
  11. virtual std::unique_ptr<formatter> clone() const = 0;
  12. };
  13. } // namespace spdlog