on-internet
← Community

how to configure kotlin-logging logger

Stack Overflow ·

For logging purposes in my Kotlin project I am using kotlin-logging which is really nice to use however I am missing a very central point: How can I configure the log level of the logger? Per default it is set to info and I would like to set it to debug. As there is nothing about that on the Github page nor is there any method to set the level programmatically I had a look into slf4j as kotlin-logging is a wrapper around that. Apparently I have to set a System Property like this: -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG However I have no idea how to do this in Kotlin. Anyone can help me

Comments

Sign in or sign up to comment and upvote.

No comments yet.