Update example.cpp

This commit is contained in:
Gabi Melman 2018-07-07 15:05:01 +03:00 committed by GitHub
parent 5fddfca7c6
commit 4fc59e3e7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,7 @@ void stdout_example()
auto err_logger = spdlog::stderr_logger_mt("error_logger"); auto err_logger = spdlog::stderr_logger_mt("error_logger");
err_logger->error("Some error message"); err_logger->error("Some error message");
// Formatting examples // Formatting examples
console->warn("Easy padding in numbers like {:08d}", 12); 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); console->critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);