A C++ library for logging very fast and without allocating.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
571 B

преди 2 години
преди 2 години
преди 1 година
преди 1 година
преди 2 години
  1. #pragma once
  2. #include <cstdint>
  3. #include <cstddef>
  4. #include <string_view>
  5. #include <string>
  6. #include <functional>
  7. #include <any>
  8. #include "sl/strategies.h"
  9. namespace sl {
  10. template<BufferStrategy b_strategy_t, SinkStrategy s_strategy_t, OverflowStrategy over_strategy_t, OutputStrategy out_strategy_t>
  11. void register_log(int log_id, std::string_view log_name, std::string_view buffer_filename, uint64_t buffer_size,
  12. uint64_t out_strategy_parameter, std::string_view output_directory);
  13. void process_log_config(const std::string_view& filename);
  14. }