Analogous to the extension function T.logger() which constructs a logger using the class of T, an extension property T.logger should be added for an alternative to using the Logging mixin. The general change is fairly simple:
inline val <reified T> T.logger: KotlinLogger
get() = cachedLoggerOf(T::class.java)
Analogous to the extension function
T.logger()
which constructs a logger using the class ofT
, an extension propertyT.logger
should be added for an alternative to using theLogging
mixin. The general change is fairly simple: