-
- Notifications
You must be signed in to change notification settings - Fork 125
Open
Description
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?).
MarianP9, xjw580, dmitry-cherkas and wojtek-ptak-tr
Metadata
Metadata
Assignees
Labels
No labels