Update README.md

This commit is contained in:
Gabi Melman 2014-12-07 05:29:56 +02:00
parent 1e7cc4cec5
commit 69689cae80
1 changed files with 4 additions and 6 deletions

View File

@ -64,13 +64,11 @@ int main(int, char* [])
console->info("Creating file {}..", filename);
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)
{
file_logger->info("{} * {} = {}, i, i, i*i );
}
for (int j = 1; j <= 10; ++j)
for (int i = 1; i < 10; ++i)
file_logger->info("{} * {} equals {}, i, j, i*j );
console->info("Easy padding in numbers like {:08d}", 12);
console->info("int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);