From 05e3a73b162705b37ed464ceb4644addfb03f25b Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Thu, 12 Jan 2023 10:15:58 +0100 Subject: [PATCH] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b0c7fe5e..7cc4db9e 100644 --- a/README.md +++ b/README.md @@ -148,15 +148,14 @@ void daily_example() // This is useful in order to display debug logs only when really needed (e.g. when error happens). // When needed, call dump_backtrace() to dump them to your log. -spdlog::enable_backtrace(32); // Store the latest 32 messages in a buffer. Older messages will be dropped. +spdlog::enable_backtrace(32); // Store the latest 32 messages in a buffer. // or my_logger->enable_backtrace(32).. for(int i = 0; i < 100; i++) { spdlog::debug("Backtrace message {}", i); // not logged yet.. } -// e.g. if some error happened: +// e.g. if some has error happened: spdlog::dump_backtrace(); // log them now! show the last 32 messages - // or my_logger->dump_backtrace(32).. ```