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
Update KtorSimpleLoggerJs.kt #4002
Conversation
Hey @aggarwalpulkit596, thanks for the PR. LGTM, merged |
Hi I'm trying to use ktor client in my wasm app and facing an issue related to this change:
|
Hey, as workaround you can try defining it manually in |
(cherry picked from commit ff7c004)
Also, the |
(cherry picked from commit ff7c004)
Subsystem
Ktor-Utils
Motivation
Configuring JS Client for Browser platform.
In our organisation we are currently using a Kotlin multiplatform based SDK which relies on ktor for networking. However there is a slight inconvience with the browser platform being bombarded with trace logs. When we were exploring possible solutions for the same, we found this https://github.com/ktorio/ktor/pull/3783/files, which solves our problem partially by adding a env for configuring trace logs but this doesn't work for us as our platform is a pure client side facing application which runs in browser.
Solution
Adding a simple conditional for the KtorSimpleLogger in which we check for both Node and Browser platform.