sschuberth commented on code in PR #137:
URL:
https://github.com/apache/logging-log4j-kotlin/pull/137#discussion_r2391409099
##########
log4j-api-kotlin/src/main/kotlin/org/apache/logging/log4j/kotlin/LoggingFactory.kt:
##########
@@ -34,6 +34,10 @@ inline fun <reified T : Any> T.logger() =
loggerOf(T::class.java)
*
* @since 1.3.0
*/
+@Deprecated(
+ "Replace with autoprop.logger to avoid unintended consequences with
explicitly declared logger properties. This will be removed in the next major
release.",
+ replaceWith = ReplaceWith("logger",
"org.apache.logging.log4j.kotlin.autoprop.logger")
Review Comment:
This should now say `org.apache.logging.log4j.kotlin.extension.logger` as
well.
##########
log4j-api-kotlin/src/main/kotlin/org/apache/logging/log4j/kotlin/extension/LoggingFactoryExtension.kt:
##########
@@ -0,0 +1,27 @@
+package org.apache.logging.log4j.kotlin.extension
+
+import org.apache.logging.log4j.kotlin.KotlinLogger
+import org.apache.logging.log4j.kotlin.cachedLoggerOf
+
+/**
+ * Provides a logger named after the receiver object's class.
+ *
+ * Simply import this property and use it.
+ *
+ * ```
+ * import org.apache.logging.log4j.kotlin.autoprop.logger
Review Comment:
This should now say `org.apache.logging.log4j.kotlin.extension.logger` as
well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]