Skip to content
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

Logger solution for Kotlin MPP #323

Open
takahirom opened this issue Mar 9, 2021 · 2 comments
Open

Logger solution for Kotlin MPP #323

takahirom opened this issue Mar 9, 2021 · 2 comments

Comments

@takahirom
Copy link
Member

Kind (Required)

  • Improvement

Overview (Required)

  • We tried arbor but it does not support Kotlin Native

I want a library that has the following elements:

  • Interface that does not need to declare fields etc. every time like Timber
  • Can be flexibly sent to crashlytics etc. like Timber
  • It is compatible with recent Kotlin versions.
  • Supports kotlin native

Links

@daichikuwa0618
Copy link

@takahirom
How about AAKira/Napier ?
This logger library is inspired by Timber which you desire.

This features

  • sending to Crashlytics
  • looks simple interface (to me)
  • again, inspired by Timber

If this is not suit for this project, it may be good to see AAKira/Kotlin-Multiplatform-Libraries to look for another suitable library.

@takahirom
Copy link
Member Author

Thank you for your suggestion.
I was worried that there was no update recently. 😅
However, this library uses Kotlin 1.4.0, and ABI compatibility version is 1.4.1, so there seems to be no problem.
https://github.com/JetBrains/kotlin/blob/v1.4.0/compiler/util-klib/src/org/jetbrains/kotlin/library/KotlinAbiVersion.kt#L34
There is no problem from the ABI side, but there is a risk that code highlighting will not work on iOS if it does not support the hierarchical structure.
https://kotlinlang.org/docs/mpp-share-on-platforms.html#use-target-shortcuts
image

However, regarding the hierarchical structure, other libraries are the same, so it seems that it is okay to include it. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants