mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update comment
This commit is contained in:
parent
feefb7e7e2
commit
172cf26d77
@ -44,7 +44,7 @@ int main(int, char *[])
|
|||||||
// Backtrace support
|
// Backtrace support
|
||||||
// Loggers can store in a ring buffer all messages (including debug/trace) for later inspection.
|
// Loggers can store in a ring buffer all messages (including debug/trace) for later inspection.
|
||||||
// When needed, call dump_backtrace() to see what happened:
|
// When needed, call dump_backtrace() to see what happened:
|
||||||
spdlog::enable_backtrace(10); // create ring buffer with capacity of 10 messages
|
spdlog::enable_backtrace(10); // create ring buffer to store latest 10 messages
|
||||||
for (int i = 0; i < 100; i++)
|
for (int i = 0; i < 100; i++)
|
||||||
{
|
{
|
||||||
spdlog::debug("Backtrace message {}", i); // not logged..
|
spdlog::debug("Backtrace message {}", i); // not logged..
|
||||||
|
Loading…
Reference in New Issue
Block a user