Update README.md
This commit is contained in:
parent
ac85e383a9
commit
b56b6509b1
@ -137,7 +137,7 @@ void rotating_example()
|
|||||||
{
|
{
|
||||||
// Create a file rotating logger with 5mb size max and 3 rotated files
|
// Create a file rotating logger with 5mb size max and 3 rotated files
|
||||||
auto max_size = 1048576 * 5;
|
auto max_size = 1048576 * 5;
|
||||||
auot max_files = 3;
|
auto max_files = 3;
|
||||||
auto rotating_logger = spdlog::rotating_logger_mt("some_logger_name", "logs/rotating.txt", max_size, max_files);
|
auto rotating_logger = spdlog::rotating_logger_mt("some_logger_name", "logs/rotating.txt", max_size, max_files);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user