final fixes before publish

This commit is contained in:
2022-06-07 21:42:19 +06:00
parent aad75a66b7
commit 7fec433344
7 changed files with 158 additions and 121 deletions

View File

@@ -0,0 +1,8 @@
package dev.inmo.kslog.common
val Any.logTag
get() = this::class.simpleName ?: error("Unable to retrieve log tag")
val Any.logger
get() = CallbackKSLog { l, t, m, e ->
KSLog.DEFAULT.performLog(l, t ?: logTag, m, e)
}