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:
authorgabime <gmelman1@gmail.com>2019-09-05 18:51:28 +0300
committergabime <gmelman1@gmail.com>2019-09-05 18:51:28 +0300
commit7f0398ca25b4505dc83620a505fdada940f28d99 (patch)
tree6f5320670996f04aa4eaf8766ae75933468748a7 /example
parentd7f05722d428997ee00b1b93a30748a7e61236f8 (diff)
Added version() function
Diffstat (limited to 'example')
-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);