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-08-23 02:45:35 +0300
committergabime <gmelman1@gmail.com>2019-08-23 02:45:35 +0300
commitb24ef39b9dc9bfd2efa37b2965dbad84269a906f (patch)
tree552cac445cd78300853270e188467efecc9d0fd3 /example
parenta6d8b52686e178d34f37e0f46f1224882da47d4c (diff)
Update example
Diffstat (limited to 'example')
-rw-r--r--example/example.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/example/example.cpp b/example/example.cpp
index ce57fc9d..f14dd1ac 100644
--- a/example/example.cpp
+++ b/example/example.cpp
@@ -41,6 +41,14 @@ int main(int, char *[])
spdlog::info("This an info message with custom format");
spdlog::set_pattern("%+"); // back to default format
+ // Backtrace support.
+ // Auto trigger backtrace of latest debug/trace messages upon when error/critical messages happen..
+ spdlog::enable_backtrace();
+ spdlog::trace("Backtrace message 1");
+ spdlog::debug("Backtrace message 2");
+ spdlog::debug("Backtrace message 3");
+ spdlog::error("This should trigger backtrace!")
+
try
{
stdout_logger_example();