Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'example/example.cpp')
-rw-r--r--example/example.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/example.cpp b/example/example.cpp
index 2a18677a..b2d9e3f6 100644
--- a/example/example.cpp
+++ b/example/example.cpp
@@ -22,7 +22,7 @@ void syslog_example();
int main(int, char *[])
{
- spdlog::info("Welcome to spdlog version {}.{}.{} !", SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH);
+ spdlog::info("Welcome to spdlog version {} !", spdlog::version());
spdlog::warn("Easy padding in numbers like {:08d}", 12);
spdlog::critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42);
spdlog::info("Support for floats {:03.2f}", 1.23456);