Updated file_events example

This commit is contained in:
gabime 2021-11-15 14:35:00 +02:00
parent 30fb78813b
commit b813bb863d

View File

@ -317,11 +317,9 @@ void file_events_example(){
spdlog::info("Before opening {}", filename);
};
handlers.after_open = [](spdlog::filename_t filename, std::FILE *fstream) {
spdlog::info("After opening {}", filename);
fputs("After opening\n", fstream);
};
handlers.before_close = [](spdlog::filename_t filename, std::FILE *fstream) {
spdlog::info("Before closing {}", filename);
fputs("Before closing\n", fstream);
};
handlers.after_close = [](spdlog::filename_t filename) {