mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update README.md
This commit is contained in:
parent
c0f0fd713d
commit
1e4f14c789
@ -94,9 +94,7 @@ int main(int, char*[])
|
|||||||
|
|
||||||
// Conditional logging example
|
// Conditional logging example
|
||||||
auto i = 2;
|
auto i = 2;
|
||||||
console->info_if(i < 20, "Welcome to spdlog conditional logging!");
|
|
||||||
console->warn_if(i != 0, "an important message");
|
console->warn_if(i != 0, "an important message");
|
||||||
console->critical_if(i != 2, "a false warning which won't show up");
|
|
||||||
|
|
||||||
// Formatting examples
|
// Formatting examples
|
||||||
console->warn("Easy padding in numbers like {:08d}", 12);
|
console->warn("Easy padding in numbers like {:08d}", 12);
|
||||||
|
Loading…
Reference in New Issue
Block a user