Skip to content

With thread-pool of 1 thread, can I use _st-sinks? #1852

Answered by gabime
raphaelzulliger asked this question in Q&A
Discussion options

You must be logged in to vote

.. pool of 1 thread, the sink(s) will be accessed by that single thread only and therefore I could use the "single threaded sinks" (_st versions). Right?

Right. As long as all loggers with the shared sinks use async logging.

Is my thinking correct? Or more broadly: Is my approach of using single-threaded-thread-pool to decouple the "application path" from the "logging path" o

Sounds right. Please see full queue policies to choose how to handle cases when the queue gets full.

Replies: 6 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@raphaelzulliger
Comment options

@raphaelzulliger
Comment options

Answer selected by raphaelzulliger
Comment options

You must be logged in to vote
1 reply
@software-natives-docker
Comment options

Comment options

You must be logged in to vote
4 replies
@software-natives-docker
Comment options

@software-natives-docker
Comment options

@software-natives-docker
Comment options

@software-natives-docker
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@software-natives-docker
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants