Possibility to clear backtrace #2176
Unanswered
GiovanniLR
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a scenario where I want to log a set of statements only if the time difference between the first log and last log exceeds a limit.
I was thinking to do this by storing the messages in the backtrace and then dumping them or deleting them at the end depending on the condition. (I could store them in a data structure of mine but this would be more work.)
It seems to me currently it is not possible to clear the backtrace, is this correct ? (thinking of adding a spdlog::clear_backtrace)
is there another way this could be done ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions