From b813bb863d0b2616300547d864331cc10023ddc4 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 15 Nov 2021 14:35:00 +0200 Subject: [PATCH] Updated file_events example --- example/example.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index a3a6ff7a..a4324ffa 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -316,12 +316,10 @@ void file_events_example(){ handlers.before_open = [](spdlog::filename_t filename) { spdlog::info("Before opening {}", filename); }; - handlers.after_open = [](spdlog::filename_t filename, std::FILE *fstream) { - spdlog::info("After opening {}", filename); + handlers.after_open = [](spdlog::filename_t filename, std::FILE *fstream) { fputs("After opening\n", fstream); }; - handlers.before_close = [](spdlog::filename_t filename, std::FILE *fstream) { - spdlog::info("Before closing {}", filename); + handlers.before_close = [](spdlog::filename_t filename, std::FILE *fstream) { fputs("Before closing\n", fstream); }; handlers.after_close = [](spdlog::filename_t filename) {