Added example comment in test

pull/1693/head
Dilshod Mukhtarov 5 years ago
parent 1bf4ca6928
commit 8f809c1ce6
No known key found for this signature in database
GPG Key ID: 61D0DE82722F1ACE

@ -107,7 +107,10 @@ TEST_CASE("rotating_file_logger_compress_callback", "[rotating_logger]]")
std::string compress_ext = ".gz";
auto callback = [=](spdlog::filename_t filename){
// Here could be gzip filename which will rename it to filename.gz
// Example usage on *nix OS:
// std::system(std::string("gzip " + filename).c_str());
// for testing we use rename(), simulating gzipping
rename(filename.c_str(), std::string(filename + compress_ext).c_str());
};

Loading…
Cancel
Save