Hey. Anyone using Kermit for logging purposes? If ...
# multiplatform
i
Hey. Anyone using Kermit for logging purposes? If yes, how do you remove logs from production? They do have a plugin to strip but no documentation!
b
Well I've not tried this but this is one approach by checking if the current build is debug, then print log. Use this lib for checking build config https://github.com/yshrsmz/BuildKonfig
d
This is probably better asked in #touchlab-tools. The Kermit Gralde Plugin is at https://mvnrepository.com/artifact/co.touchlab/kermit-gradle-plugin. Latest version appears to be 1.2.3. To use it, add the plugin to your build.gradle.kts and then set the
stripBelow
value, e.g.:
Copy code
kermit {
    stripBelow = StripSeverity.Warn
}
i
Thanks. I asked here in context of kmm but nvm, joined touchlab. Thanks again!
Well this does not works