spdlog backtrace #1965
Unanswered
samuelnaga
asked this question in
Q&A
Replies: 1 comment
-
Right, this is by design. Just set to high level to turn it off while still keeping the backtrace. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I wondered if there is any way to "stop" logging while performing some operations that require high performance.
The idea would be to save the logs (within these operations) in memory and, when the operations have finished, the saved logs get written in the log file as normally.
This is more or less what I need:
However, this code is writing the debug log from the operations twice, at operations runtime and again when dumb_backtrace() is called.
Is there a way to just write this log just when calling dump_backtrace() or similar function?
I have noticed that when a higher log level than the defined one (trace in this case) is used in the operations loop, they are just written when the dumb_backtrace() is called. That would be the desired behavior but, regardless the log level.
Beta Was this translation helpful? Give feedback.
All reactions