1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-04-29 03:53:54 +00:00
spdlog/tests/utils.h
Gabi Melman 83c9ede9e6
Asink sink (#3309)
Replace async logger with async sink
2025-01-05 02:17:31 +02:00

21 lines
561 B
C++

#pragma once
#include <cstddef>
#include <filesystem>
#include <string>
std::size_t count_files(const std::string &folder);
void prepare_logdir();
std::string file_contents(const std::filesystem::path &filename);
// std::size_t count_lines(const std::string &filename);
std::size_t count_lines(const std::filesystem::path &filename);
void require_message_count(const std::filesystem::path &filename, const std::size_t messages);
std::size_t get_filesize(const std::string &filename);
bool ends_with(std::string const &value, std::string const &ending);