For logging in my Kotlin project, I use kotlin-logging , which is really nice to use, but I miss a very central point: How do I set the log level of the log?
By default, it is set to info, and I would like to configure it for debugging. Since there is nothing on the Github page, and there is no way to set the level programmatically, I looked at slf4j since kotlin-logging is a wrapper around this.
Apparently, I need to set the system property as follows:
-Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG
However, I do not know how to do this in Kotlin.
Can anybody help me?
source share