Closed kpgalligan closed 11 months ago
Restoring the global functions seems to have made them ambiguous.
Logger.d(tag = "MyTag") { "debug message" }
Now gives:
e: file:... Overload resolution ambiguity:
public final fun d(tag: String, throwable: Throwable? = ..., message: () -> String): Unit defined in co.touchlab.kermit.Logger.Companion
public final inline fun d(throwable: Throwable? = ..., tag: String = ..., message: () -> String): Unit defined in co.touchlab.kermit.Logger.Companion
Is there a solution to this ambiguity problem? 👀
The api refactor cut the global functions that were added for tag convenience.
Reference: https://github.com/touchlab/Kermit/issues/371