Commit a0d92cb5 authored by Gabi Melman's avatar Gabi Melman

Update README.md

parent c55a0c89
...@@ -72,6 +72,10 @@ int main(int, char* []) ...@@ -72,6 +72,10 @@ int main(int, char* [])
console->info("{:>30}", "right aligned"); console->info("{:>30}", "right aligned");
console->info("{:^30}", "centered"); console->info("{:^30}", "centered");
//See full cppformat documation here:
//http://cppformat.readthedocs.org/en/stable/syntax.html
//Create a file rotating logger with 5mb size max and 3 rotated files //Create a file rotating logger with 5mb size max and 3 rotated files
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment