52 for (
int tries = 0; tries <
open_tries; ++tries)
57 std::this_thread::sleep_for(std::chrono::milliseconds(open_interval));
66 throw spdlog_ex(
"Failed re opening file - was not opened before");
90 if (std::fwrite(data, 1, msg_size,
_fd) != msg_size)
void open(const filename_t &fname, bool truncate=false)
bool file_exists(const filename_t &filename)
void reopen(bool truncate)
const Char * data() const FMT_NOEXCEPT
static bool file_exists(const filename_t &name)
const filename_t & filename() const
file_helper & operator=(const file_helper &)=delete
fmt::MemoryWriter formatted
void write(const log_msg &msg)
int fopen_s(FILE **fp, const filename_t &filename, const filename_t &mode)
#define SPDLOG_FILENAME_T(s)
std::string filename_to_str(const filename_t &filename)