You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will explain this bug with info(...), the same issue with debug, warn etc.
KLogger.info(Marker, ()-> Any?) is marked as deprecated withe the replacement info(null, marker, msg)
The issue is, that using this replacement is ambiguous causing the following compiler error:
Overload resolution ambiguity between candidates:
fun info(marker: Marker?, t: Throwable?, msg: () -> Any?): Unit
fun info(marker: Marker?, msg: String?, arg: Any?): Unit
Only calling the function like this log.info(marker, throwable=null, msg) satisfies the compiler. Which makes the call more complex (even with log.info(marker, null, msg) the null looks unnecessary.
Suggestion: undeprecate the function KLogger.info(Marker, ()-> Any?).