Hey team! :wave: I just released my first open-source Kotlin library and wanted to share it with you...
s
Hey team! ๐Ÿ‘‹ I just released my first open-source Kotlin library and wanted to share it with you all! kotlin-logging-extensions - Brings Lombok-style automatic logger generation to Kotlin using KSP ๐Ÿ”ง The Problem: Coming from Java, I really missed
@Slf4j
annotationโ€™s simplicity. In Kotlin, you either put loggers at the top-level (breaking โ€œone class per fileโ€) or declare them in every single class (lots of boilerplate). The Solution: Just use
<http://log.info|log.info> { }
directly in any class - no declarations needed!
Copy code
class UserService {
    fun createUser() {
        <http://log.info|log.info> { "Creating user" } // :sparkles: Works automatically!
    }
}
How it works: Uses Kotlin Symbol Processing (KSP) to generate logger extensions at compile-time. Zero runtime overhead, integrates with kotlin-logging, and works with any package depth. ๐Ÿ”— GitHub: https://github.com/doljae/kotlin-logging-extensions Still early stage (v0.0.1) but itโ€™s already working well in my projects. Would love to hear your thoughts or feedback if anyone tries it out! #Kotlin #KSP #Logging #OpenSource
K 2
u
Great ! Can you publish it on MC?
๐Ÿš€ 1
s
Hello @ืืœื™ื”ื• ื”ื“ืก ๐Ÿ™‚ Iโ€™ll do it ASAP. Thanks for your interest in my open source thank you color
K 1
Now available on Maven Central ๐Ÿ‘