mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
Update README.md
This commit is contained in:
parent
c7432b8ece
commit
5897584175
@ -71,7 +71,8 @@ int main(int, char* [])
|
|||||||
file_logger->info("{} * {} equals {}, i, j, i*j );
|
file_logger->info("{} * {} equals {}, i, j, i*j );
|
||||||
|
|
||||||
console->info("Easy padding in numbers like {:08d}", 12);
|
console->info("Easy padding in numbers like {:08d}", 12);
|
||||||
console->info("int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);
|
console->info("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);
|
||||||
|
console->infor("Supprot for floats {:03.2f}", 1.23456);
|
||||||
console->info("Positional args are {1} {0}..", "too", "supported):
|
console->info("Positional args are {1} {0}..", "too", "supported):
|
||||||
|
|
||||||
console->info("{:<30}", "left aligned");
|
console->info("{:<30}", "left aligned");
|
||||||
|
Loading…
Reference in New Issue
Block a user