Join Slack
Powered by
How can I set the logging level for Android and iO...
# kotlin-logging
s
Sabeeh
10/17/2024, 8:41 AM
How can I set the logging level for Android and iOS? By default, it is set to ‘info’, but I want to change it to ‘debug’. I can’t find any configuration for it
o
oshai
10/18/2024, 7:15 AM
if you're using slf4j in android for example like this:
https://github.com/oshai/kotlin-logging/wiki#q-how-do-i-set-the-log-level
oshai
10/18/2024, 7:16 AM
if it's native then like this:
https://stackoverflow.com/questions/2018263/how-do-i-enable-disable-log-levels-in-android
oshai
10/18/2024, 7:18 AM
Another option is using this object:
https://github.com/oshai/kotlin-logging/blob/master/src/directMain/kotlin/io/github/oshai/kotlinlogging/KotlinLoggingConfiguration.kt
s
Sabeeh
10/21/2024, 4:11 PM
@oshai
KotlinLoggingConfiguration is not available in common. Is there any way in common to set it?
o
oshai
10/27/2024, 3:00 PM
no, it's supported only on "direct". so I guess in most setups has to be set per platform
11
Views
Open in Slack
Previous
Next