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
Not work on Android #233
Comments
Thank you for reporting an issue. See the wiki for documentation and slack for questions. |
Try using the dependency |
Same, not work with slf4j-android and kotlin-logging-jvm |
There is this example which was working in the past (but it uses the old kotlin-logging 1.x): https://github.com/MicroUtils/kotlin-logging-example-android You can try that or spot the differences or create a newer repo to reproduce the issue. |
i've already use this example but it still not work. the combination of libraries from that example does not work |
I am using it all the time on desktop and Android and it works.
|
Not work at this point it makes me think that I am doing something else wrong besides the dependencies i declared a global variable in a file called KLogger.Kt like this:
|
This is not the intended usage. First try to follow the examples before you make your own experiments. |
not the correct use?? tell me what changes at runtime my example from the one shown at the link https://github.com/MicroUtils/kotlin-logging-example-android/blob/master/app/src/main/java/mu/kotlinloggingexampleandroid/MainActivity.kt . And anyway using the examples shown on the page doesn't work. |
were you able to resolve the issue or still need assistance? |
here it is suggested to use slf4j-handroid. |
Thanks, I can print out the log with yours |
This is my previous configuration and can't print logs at all |
kotlin logging 3 is not compatible with slf4j 1.7. |
See updates on #122 on how I plan to solve the issue. |
Version 4.0.0-beta-15 contains native android logging with artifact |
implementation 'io.github.microutils:kotlin-logging:2.0.11'
implementation 'org.slf4j:slf4j-simple:1.7.36'
implementation 'org.slf4j:slf4j-api:1.7.36'
With these library i can't see any log using Android
val klog = KotlinLogging.logger{}
The text was updated successfully, but these errors were encountered: