corneil
02/11/2020, 1:01 PMMark
02/11/2020, 1:11 PMMark
02/11/2020, 1:17 PMinline fun <reified T> T.logw(...)
but the problem with that is often T does not represent the tag you want (extension functions, coroutinescope or top-level functions). So having a top level logger property like
val logger = KotlinLogging.logger {}
is so much better because that will use the filename as the tag (better for my needs)Mark
02/12/2020, 5:46 AMcorneil
02/12/2020, 5:47 AMMark
02/12/2020, 6:34 AMcorneil
02/12/2020, 7:06 AM