From fa659bf7ad327a13e2e7134d1004d0cda0c3ed96 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sat, 27 Feb 2021 11:18:12 +0200 Subject: [PATCH] Update daily_file_sink.h --- include/spdlog/sinks/daily_file_sink.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/spdlog/sinks/daily_file_sink.h b/include/spdlog/sinks/daily_file_sink.h index b5caef8f..16be821a 100644 --- a/include/spdlog/sinks/daily_file_sink.h +++ b/include/spdlog/sinks/daily_file_sink.h @@ -39,6 +39,10 @@ struct daily_filename_calculator /* * Generator of daily log file names with strftime format. + * Usages: + * auto sink = std::make_shared("myapp-%Y-%m-%d:%H:%M:%S.log", hour, minute);" + * auto logger = spdlog::daily_logger_format_mt("loggername, "myapp-%Y-%m-%d:%X.log", hour, minute)" + * */ struct daily_filename_format_calculator {