Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

19 lines
455B

  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 "fmt/fmt.h"
  5. #include "spdlog/details/log_msg.h"
  6. namespace spdlog {
  7. class formatter
  8. {
  9. public:
  10. virtual ~formatter() = default;
  11. virtual void format(const details::log_msg &msg, memory_buf_t &dest) = 0;
  12. virtual std::unique_ptr<formatter> clone() const = 0;
  13. };
  14. } // namespace spdlog