@@ -12,9 +12,9 @@ import kotlin.reflect.KClass
1212 * enable/disable log levels for loggers based on their package names, or query for logs from a
1313 * specific class.
1414 *
15- * The easiest way to construct a logger is by calling [getLogger] with an empty lambda argument.
16- * This automatically gives the logger the name of its containing class (or file, if defined at the
17- * top level).
15+ * The easiest way to construct a logger is by calling [getLogger] with zero arguments. This
16+ * automatically gives the logger the name of its containing class (or file, if defined at the top
17+ * level). See the "Implementation" section on [getLogger]'s docstring for how this works .
1818 *
1919 * ```
2020 * // In file Example.kt
@@ -494,7 +494,7 @@ public expect inline fun getLogger(): Logger
494494 * The logger name is included in the log output, and can be used to enable/disable log levels for
495495 * loggers based on their package names, or query for logs from a specific class.
496496 *
497- * In most cases, you should prefer the zero-argument `getLogger()` overload, to automatically get
497+ * In most cases, you should prefer the zero-parameter `getLogger()` overload, to automatically get
498498 * the name of the containing class (or file). But if you want more control over which class to use
499499 * for the logger name, you can use this overload.
500500 *
@@ -526,14 +526,16 @@ public expect fun getLogger(forClass: KClass<*>): Logger
526526 * loggers based on their package names, or query for logs from a specific class. Because of this,
527527 * the name given here should follow fully qualified class name format, like `com.example.Example`.
528528 *
529- * To set the name automatically from the containing class/file, you can use the zero-argument
529+ * To set the name automatically from the containing class/file, you can use the zero-parameter
530530 * `getLogger()` overload instead.
531531 *
532532 * ### Example
533533 *
534534 * ```
535535 * private val log = getLogger(name = "com.example.Example")
536536 * ```
537+ *
538+ * @param name Should follow fully qualified class name format, like `com.example.Example`.
537539 */
538540public expect fun getLogger (name : String ): Logger
539541
0 commit comments