1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-15 17:27:57 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Gabi Melman
c09641cf47
Merge pull request #1450 from rabbull/fmt_string
Add example to FMT_STRING in README
2020-02-20 20:27:03 +02:00
Karl Liu
92467db591 add example to FMT_STRING 2020-02-21 02:06:06 +08:00

View File

@ -300,6 +300,15 @@ void android_example()
android_logger->critical("Use \"adb shell logcat\" to view this message.");
}
```
---
#### Compile-time format string syntax checking
```C++
#include "spdlog/spdlog.h"
int main()
{
spdlog::info(FMT_STRING("{:d} is an invalid format tag"));
}
```
## Benchmarks