mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Update example.cpp
This commit is contained in:
parent
5fddfca7c6
commit
4fc59e3e7b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user