-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
make the lib multi-platform #21
Comments
I would really like this awesome library supporting multiplatform code. There is already attempt using |
Do you have an idea or link how to do that? I am not sure what is the level of support in kotlin for such libs. |
I referenced only ideas. There is a discussion on supporting the multi-platform projects. |
Thanks for the links, seems like not that stable at the moment... So I am still waiting for JB to announce of something official. |
Yeah, official support would be really nice. Thank you for all your effort! |
When it's released, a pull request will be nice ;-)
|
It will be possible in 1.2: http://kotlinlang.org/docs/reference/multiplatform.html |
https://github.com/Lewik/klogging can jvm, js and common logging. |
- split to common/jvm/js - left all code in jvm at the moment - add build scripts
changes for this issue are on the multiplatform branch: https://github.com/MicroUtils/kotlin-logging/tree/multiplatform |
release 1.5.3 is from multiplatform branch, currently only jvm version but you are welcome to try. |
* issue #21 - make the lib multiplatform - split to common/jvm/js - left all code in jvm at the moment - add build scripts * issue #31 - Add MDC support: withLoggingContext * merge to branch: issue #31 - Add MDC support: withLoggingContext * add documentation * rebase (#33) * issue #31 - Add MDC support: withLoggingContext * Update ChangleLog.md * Update ChangleLog.md * Update README.md * Rename ChangleLog.md to ChangeLog.md (#32) * update to kotlin 1.2.20 * split packages and gradle build * split packages and gradle build * split packages and gradle build * fix src root for jvm project * fix artifact build for jvm version
All work was merged to master. There is no js artifact yet but repo is ready for that. |
@oshai Is this also applicable for Kotlin/Native multi platform projects? |
No, currently this issue is only related to jvm/js. But it is true that in the future we should have native flavour as well. |
@joelhandwell if it not difficult, I'll try to implement it in https://github.com/Lewik/klogging I'll notify you about it. |
add common and js jars (will be in https://github.com/MicroUtils/kotlin-logging/releases) common module have expect for 2 main classes: KotlinLogging, KLogger js implementation includes writing to console, and a class KotlinLoggingLevel that defines the log level in LOG_LEVEL member default level is info for js implementation
@LDVSOFT @Lewik - if you can test common + js from here: https://github.com/MicroUtils/kotlin-logging/releases/tag/1.5.5 it will be great. Also, any comments on the implementation are welcome. |
I also published common and js artifacts to bintray/jcenter. feedback is welcome. |
Currently maven/gradle build is failing for kotlin/jvm project as it is not able to find the common module.
Do you have any plan to publish the common artifact to central maven repo? For the time being I have added |
I was hoping I will not have to, it will break usage for existing users trying to upgrade. |
@anidotnet - thanks for reporting. seems something was changed between Kotlin versions 1.2.30->1.2.40 in pom generation. I will try to ask around. |
opened an issue for it: https://youtrack.jetbrains.com/issue/KT-25799 |
|
Please vote for this issue, as it prevents us from upgrading kotlin version: https://youtrack.jetbrains.com/issue/KT-25799 |
add common and js jars (will be in https://github.com/MicroUtils/kotlin-logging/releases) common module have expect for 2 main classes: KotlinLogging, KLogger js implementation includes writing to console, and a class KotlinLoggingLevel that defines the log level in LOG_LEVEL member default level is info for js implementation
I published version 1.5.9 to maven central which I hope will solve the issue with missing artifacts. There is still a broken build in Travis that I am handling because of js tests issue. If you see any other errors please open a new issue. |
No description provided.
The text was updated successfully, but these errors were encountered: