Replies: 3 comments 13 replies
-
Something like this? What about mutex on secondary backtrace?
|
Beta Was this translation helpful? Give feedback.
5 replies
-
If you don't want to see duplicates just set the secondary logger level to |
Beta Was this translation helpful? Give feedback.
7 replies
-
Either use the backtracer, or use the ringbuffer and add a foreach_pop impl (see above) , or maybe even better, iterator support(pr is welcome). That being said, if the rate of your logs is not high, maybe your solution is good enough. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to implement two loggers in the same process. One is on primary thread (no backtrace), the second is on secondary thread with backtrace enabled. The primary thread would drain the secondary backtrace to same sink. What's the recommended pattern for implementing this?
Beta Was this translation helpful? Give feedback.
All reactions