kotlin-logging
Lightweight Multiplatform logging framework for Kotlin. A convenient and performant logging facade. (by oshai)
jackson-module-kotlin
Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes. (by FasterXML)
kotlin-logging | jackson-module-kotlin | |
---|---|---|
6 | 9 | |
2,485 | 1,104 | |
1.2% | 0.8% | |
8.7 | 9.3 | |
13 days ago | 9 days ago | |
Kotlin | Kotlin | |
GNU General Public License v3.0 or later | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kotlin-logging
Posts with mentions or reviews of kotlin-logging.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-18.
-
SLF4K VS kotlin-logging - a user suggested alternative
2 projects | 18 Mar 2024
kotlin-logging is a Multiplatform logger for kotlin, whereas SLFK4 is a lightweight wrapper around SLF4J, so it only works on JVM. but if you only need JVM support, SLF4K is very good
- Why logging is not working
-
From Java to Kotlin. There and back again
We chose kotlin-logging. It is a really convenient library and you can use it like this:
-
SLF4K - Kotlin extensions for SLF4J
The repo has a ticket open and someone benchmarked the throughput to be +16% inlining the methods or +37% if you inline the classes too. https://github.com/MicroUtils/kotlin-logging/issues/34
-
How to provide one's own class to a typed instance?
Why that over the much more popular kotlin-logging?
jackson-module-kotlin
Posts with mentions or reviews of jackson-module-kotlin.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-19.
-
Jackson, moshi or kotlinx.serialization?
strictNullCheck option in the Kotlin module doesn't cover non-object-field situations at all. https://github.com/FasterXML/jackson-module-kotlin/issues/479
-
Strings, Please! Eliminating Data Leaks Caused by Kotlin Assertions
But, it sucked. I was constantly finding bugs related to nullability, around generics, inline/value classes, etc. And it wasn't the typical trivial ones, either. Figuring out that you're calling a Java library and encountering a "platform type" is the least problematic. My biggest struggle came from using libraries that were written in Java first, but then added a Kotlin API on top. So, my code didn't know I was dealing with a platform type and neither did I. Yet they were still broken. Some of them are broken in an unfixable way, such as JacksonXML's Kotlin module: https://github.com/FasterXML/jackson-module-kotlin/issues/479. So many Java libraries rely on reflection even when it's not obvious that they might, so you pretty much can't ever use value classes in Kotlin, including the unsigned number types.
-
From Java to Kotlin. There and back again
You should add Jackson Module Kotlin in your project. After that, you can't specify a type of object explicitly.
-
How Cloudflare security responded to log4j2 vulnerability
Not really, you just need to handle some standard types and have a good extension mechanism to let the user implement factories. That library having built in support for UUID and datetime is probably a bit much, I'd prefer a plugin like https://github.com/FasterXML/jackson-module-kotlin
-
Ktor vs Spring for creating an API
There is a bug at this very moment that makes it literally impossible to deserialize [1, 2, 3, null] into a List with Jackson's Kotlin module. Yes- even if you set KotlinModule(strictNullChecks = true). It's just broken. (Here's the link: https://github.com/FasterXML/jackson-module-kotlin/issues/479)
-
Kotlin Team AMA #3: Ask Us Anything
Got you, thanks. I didn’t mean to sound offensive - a better wording would be that they don’t seem to prioritize this part, at least based on https://github.com/FasterXML/jackson-module-kotlin/issues/199, which has one abandoned branch from a 3rd party and a couple of comments from from maintainers.
-
kotlinx.serialization 1.2 Released: High-Speed JSON Handling, Value Class Support, Overhauled Docs, and more
If you use Jackson, don't forget to include the Kotlin extensions https://github.com/FasterXML/jackson-module-kotlin
-
Serializing and deserializing "Any" Kotlin type using jackson mapper
Did you include jackson-module-kotlin?
What are some alternatives?
When comparing kotlin-logging and jackson-module-kotlin you can also consider the following projects:
log4k - Lightweight logging library for Kotlin/Multiplatform. Supports Android, iOS, JavaScript and plain JVM environments.
kotlinx.serialization - Kotlin multiplatform / multi-format serialization
mockk - mocking library for Kotlin
klaxon - A JSON parser for Kotlin
tinylog - tinylog is a lightweight logging framework for Java, Kotlin, Scala, and Android
avro4k - Avro support for kotlinx.serialization
Humanizer.jvm
Kotson
jclasslib - jclasslib bytecode editor is a tool that visualizes all aspects of compiled Java class files and the contained bytecode.
KTON - Object notation in pure Kotlin!
krangl - krangl is a {K}otlin DSL for data w{rangl}ing
fluid-json - A JSON library written in pure Kotlin
kotlin-logging vs log4k
jackson-module-kotlin vs kotlinx.serialization
kotlin-logging vs mockk
jackson-module-kotlin vs klaxon
kotlin-logging vs tinylog
jackson-module-kotlin vs avro4k
kotlin-logging vs Humanizer.jvm
jackson-module-kotlin vs Kotson
kotlin-logging vs jclasslib
jackson-module-kotlin vs KTON
kotlin-logging vs krangl
jackson-module-kotlin vs fluid-json