From b2a3e930c1b92595be1bca3a4186760a36bea772 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 28 Aug 2019 16:32:16 +0300 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6ff4be59..abf09b24 100644 --- a/README.md +++ b/README.md @@ -143,12 +143,15 @@ void daily_example() // Loggers can store in a ring buffer all messages (including debug/trace) for later inspection. // When needed, call dump_backtrace() to see what happened: spdlog::enable_backtrace(32); // create ring buffer with capacity of 32 messages +// 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: spdlog::dump_backtrace(); // log them now! + +// or my_logger->dump_backtrace(32).. ``` ---