klog alternatives and similar libraries
Based on the "Misc" category.
Alternatively, view klog alternatives based on common mentions on social networks and blogs.
-
jclasslib
jclasslib bytecode viewer is a tool that visualizes all aspects of compiled Java class files and the contained bytecode. -
kotlin-logging
Lightweight logging framework for Kotlin. Used as a wrapper for slf4j with Kotlin extensions. -
klock
Consistent and portable date and time utilities for multiplatform kotlin (JVM, JS and Common). -
Humanizer.jvm
Humanizer.jvm meets all your jvm needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities. -
actions-on-google-kotlin
Port of official Node.js SDK to Kotlin. Complete with all features and tests and nearly identical API. -
klutter
A mix of random small libraries for Kotlin, the smallest reside here until big enough for their own repository. -
SimpleDNN
SimpleDNN is a machine learning lightweight open-source library part of KotlinNLP and has been designed to support relevant neural network architectures in natural language processing tasks. -
kassava
This library provides some useful kotlin extension functions for implementing toString() and equals() without all of the boilerplate. -
kotlin-futures
A collections of extension functions to make the JVM Future, CompletableFuture, ListenableFuture API more functional and Kotlin like. -
PrimeCalendar
Provides all of the java.util.Calendar functionalities for Civil, Persian, Hijri, Japanese, etc, as well as their conversion to each other. -
kasechange
Multiplatform Kotlin library to convert strings between various case formats including Camel Case, Snake Case, Pascal Case and Kebab Case
Get performance insights in less than 4 minutes.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of klog or a related project?
README
klog
This project is not abandonned. It's just nothing to add.
KLogging provides unified logging API, which you can use from Kotlin code targeted for JVM, Javascript common kotlin (and native soon).
Download
Use https://jitpack.io repository
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Use these dependencies per kotlin module respectively:
compile 'com.github.lewik.klog:klog-metadata:2.0.2' //for common modules
compile 'com.github.lewik.klog:klog-js:2.0.2' //for js modules
compile 'com.github.lewik.klog:klog-jvm:2.0.2' //for jvm modules
Usage
class Foo {
val log = KLoggers.logger(this)
fun test() {
log("This string will be evaluated regardless if trace enabled = ${log.isTraceEnabled}")
log {"This string will not be evaluated unless trace enabled = ${log.isTraceEnabled}"}
log("debug level")
log { "debug level" }
log.trace("trace")
log.debug("debug")
log.info("info")
log.warn("warn")
log.debug("error")
log.trace { "trace" }
log.debug { "debug" }
log.info { "info" }
log.warn { "warn" }
log.debug { "error" }
}
}
Another ways to obtain logger:
class Bar {
private val log = KLoggers.logger(this)
fun test() { log("Have some logging!") }
}
class Baz : WithLogging by KLoggerHolder() {
fun test() { log("Have some logging!") }
}
class Qux {//*
companion object: WithLogging by KLoggerHolder()
fun test() { log("Have some logging!") }
}
* Qux: https://en.wikipedia.org/wiki/Metasyntactic_variable
Inspired by
- code at [https://github.com/shafirov/klogging]
- code at [https://github.com/MicroUtils/kotlin-logging]
- and discussion at [http://stackoverflow.com/questions/34416869/idiomatic-way-of-logging-in-kotlin]