-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support user-defined thread or dispatcher name #3231
Comments
Could you please elaborate on what exactly do you mean? You can use |
First, we use ktor as our network basis, and it also cannot configure dispatcher name or thread name. |
Could you please elaborate on for what purpose do you need a configurable |
For consistency. In our case, we use some standalone threads to process particular light tasks, like commands. It's convenient to filter logs for other purposes if normalized thread names are contained in final ouput. However, dispatchers' names are not consistent with our log conventions. So, we have to customize our logger tool to support something like markers and mark everywhere. It doesn't mean that it's hard to deal with this case. We can use some builders to make codes not too verbose. But as |
Thanks for the explanation and also a reminder about scheduler configurability via system props! The system property is indeed can be a way to go here |
This was also requested in IJ team |
As proposed, customization through |
(to be closed automatically when the changes enter |
Thread names in logs output by modules that use coroutines are not consistent with other modules.
The text was updated successfully, but these errors were encountered: