-
-
Notifications
You must be signed in to change notification settings - Fork 719
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
Set custom logger before startKoin() in Android #50
Comments
Hello, Koin logging is set by default with startKoin. I will add the ability to set the needed logger. Stay in touch. |
Thanks |
Agreed, it should never log anything by default. |
My solution to this issue was to manually remove the Android logger. //startKoin here
Koin.logger = if (isDebugMode())
org.koin.android.logger.AndroidLogger() else
org.koin.log.EmptyLogger() Passing an extra param to enable logs is the best solution. |
I was thinking about putting |
I'll prefer an optional parameter |
Ok to make it as an optional param. |
Available in |
Is there any way to set custom Logger for koin before startKoin in android App?
Or maybe set Logger as a parameter for startKoin.
Main issue with current AndroidLogger() is that it's set in Application.startKoin() and make visible all KOIN logs to everyone in release builds.
The text was updated successfully, but these errors were encountered: