mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 10:01:33 +08:00
Update README.md
This commit is contained in:
parent
26b390bb19
commit
4db70c2078
@ -94,10 +94,6 @@ int main(int, char*[])
|
|||||||
console->info("Welcome to spdlog!");
|
console->info("Welcome to spdlog!");
|
||||||
console->error("Some error message with arg{}..", 1);
|
console->error("Some error message with arg{}..", 1);
|
||||||
|
|
||||||
// Conditional logging example
|
|
||||||
auto i = 2;
|
|
||||||
console->warn_if(i != 0, "an important message");
|
|
||||||
|
|
||||||
// Formatting examples
|
// Formatting examples
|
||||||
console->warn("Easy padding in numbers like {:08d}", 12);
|
console->warn("Easy padding in numbers like {:08d}", 12);
|
||||||
console->critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);
|
console->critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);
|
||||||
|
Loading…
Reference in New Issue
Block a user