Unverified Commit 4fc59e3e authored by Gabi Melman's avatar Gabi Melman Committed by GitHub

Update example.cpp

parent 5fddfca7
......@@ -65,6 +65,7 @@ void stdout_example()
auto err_logger = spdlog::stderr_logger_mt("error_logger");
err_logger->error("Some error message");
// Formatting examples
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);
......
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