mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 09:09:35 +08:00
rename file_event_handlers_t to file_event_handlers
This commit is contained in:
@@ -310,8 +310,8 @@ void custom_flags_example()
|
||||
|
||||
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) {
|
||||
spdlog::info("After opening {}", filename);
|
||||
|
Reference in New Issue
Block a user