We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cfdef7 commit e45ca14Copy full SHA for e45ca14
src/javaMain/kotlin/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.kt
@@ -6,8 +6,8 @@ import kotlin.reflect.KClass
6
internal actual object KLoggerNameResolver {
7
8
/** get class name for function by the package of the function */
9
- internal actual fun name(func: () -> Unit): String {
10
- return name(func::class)
+ internal actual fun name(ref: Any): String {
+ return name(ref::class)
11
}
12
13
internal fun name(clazz: KClass<*>): String {
0 commit comments