1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-16 01:37:58 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Gabi Melman
b56b6509b1
Update README.md 2020-04-23 02:49:37 +03:00
Gabi Melman
ac85e383a9
Update README.md 2020-04-23 02:48:50 +03:00

View File

@ -136,7 +136,9 @@ void basic_logfile_example()
void rotating_example()
{
// Create a file rotating logger with 5mb size max and 3 rotated files
auto rotating_logger = spdlog::rotating_logger_mt("some_logger_name", "logs/rotating.txt", 1048576 * 5, 3);
auto max_size = 1048576 * 5;
auto max_files = 3;
auto rotating_logger = spdlog::rotating_logger_mt("some_logger_name", "logs/rotating.txt", max_size, max_files);
}
```