mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-01 02:42:41 +08:00
Update README.md
This commit is contained in:
parent
9caaca742e
commit
09d729bfba
@ -158,7 +158,7 @@ spdlog::dump_backtrace(); // log them now! show the last 32 messages
|
|||||||
#### Periodic flush
|
#### Periodic flush
|
||||||
```c++
|
```c++
|
||||||
// periodically flush all *registered* loggers every 3 seconds:
|
// periodically flush all *registered* loggers every 3 seconds:
|
||||||
// warning: only use if all your loggers are thread safe!
|
// warning: only use if all your loggers are thread safe ("_mt" loggers)
|
||||||
spdlog::flush_every(std::chrono::seconds(3));
|
spdlog::flush_every(std::chrono::seconds(3));
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user