Replies: 1 comment
-
You only need single thread code for the handler, no locks or anything. Each frontend user thread has it's own SPSC queue and when you log or flush a message is pushed to that queue. Then the backend logging thread reads all the queues and the messages are forwarded to the handlers. It is not possible to spawn more than one backend logging thread |
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
-
I have a custom handler for a logging platform. The basic outline is below. My questions are
Thanks for the help. Just checking if I need a lock in there.
Beta Was this translation helpful? Give feedback.
All reactions