Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2021-11-16 17:41:04 +0300
committergabime <gmelman1@gmail.com>2021-11-16 17:41:04 +0300
commit5b7dfefc7e94b74c7f84db874abffe716df49257 (patch)
tree8ad6d5d60a9b61cbab92742b6859c75a029318ba /README.md
parente86be93b4a193e78a78ff894b7b3d454307241bb (diff)
rename file_event_handlers_t to file_event_handlers
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index ed673345..d1f228c2 100644
--- a/README.md
+++ b/README.md
@@ -381,8 +381,8 @@ $ ./example
// This is useful for cleanup procedures or for adding someting the start/end of the log files.
void file_events_example()
{
- // pass the spdlog::file_event_handlers_t to file sinks for open/close log file notifications
- spdlog::file_event_handlers_t handlers;
+ // pass the spdlog::file_event_handlers to file sinks for open/close log file notifications
+ spdlog::file_event_handlers handlers;
handlers.before_open = [](spdlog::filename_t filename) { spdlog::info("Before 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) { fputs("Before closing\n", fstream); };