Update README.md
This commit is contained in:
parent
1e7cc4cec5
commit
69689cae80
10
README.md
10
README.md
@ -64,13 +64,11 @@ int main(int, char* [])
|
|||||||
console->info("Creating file {}..", filename);
|
console->info("Creating file {}..", filename);
|
||||||
|
|
||||||
auto file_logger = spd::rotating_logger_mt("file_logger", filename, 1024 * 1024 * 5, 3);
|
auto file_logger = spd::rotating_logger_mt("file_logger", filename, 1024 * 1024 * 5, 3);
|
||||||
file_logger->info("Log file message number", 1);
|
file_logger->info("Log file message number {}..", 1);
|
||||||
|
|
||||||
for (int i = 0; i < 100; ++i)
|
for (int j = 1; j <= 10; ++j)
|
||||||
{
|
for (int i = 1; i < 10; ++i)
|
||||||
file_logger->info("{} * {} = {}, i, i, i*i );
|
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("int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);
|
||||||
|
Loading…
Reference in New Issue
Block a user