mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Updated example to show daily logger usage
This commit is contained in:
@@ -98,6 +98,12 @@ int main(int, char* [])
|
||||
for(int i = 0; i < 10; ++i)
|
||||
file_logger->info("{} * {} equals {:>10}", i, i, i*i);
|
||||
|
||||
|
||||
//
|
||||
// Create a daily logger - a new file is created every day on 2:30am
|
||||
//
|
||||
auto daily_logger = spd::daily_logger_mt("daily_logger", "logs/daily", 2, 30);
|
||||
|
||||
//
|
||||
// Customize msg format for all messages
|
||||
//
|
||||
|
Reference in New Issue
Block a user