From 2ab80d813b82efccbd6267eedc93bdf7598db92d Mon Sep 17 00:00:00 2001 From: Clayton Walker Date: Mon, 3 Jun 2024 23:11:18 -0600 Subject: [PATCH] Make loggers kotlin-internal --- okio/src/jvmJava9/kotlin/okio/internal/Logger.kt | 2 +- okio/src/jvmMain/kotlin/okio/internal/Logger.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/okio/src/jvmJava9/kotlin/okio/internal/Logger.kt b/okio/src/jvmJava9/kotlin/okio/internal/Logger.kt index 19b3129cde..1ca12eb4bf 100644 --- a/okio/src/jvmJava9/kotlin/okio/internal/Logger.kt +++ b/okio/src/jvmJava9/kotlin/okio/internal/Logger.kt @@ -1,6 +1,6 @@ package okio.internal -class Logger(name: String) { +internal class Logger internal constructor(name: String) { private val logger: System.Logger = System.getLogger(name) fun warn(msg: String, e: Throwable): Unit = logger.log(System.Logger.Level.WARNING, msg, e) } diff --git a/okio/src/jvmMain/kotlin/okio/internal/Logger.kt b/okio/src/jvmMain/kotlin/okio/internal/Logger.kt index 571919a294..c3cf7af372 100644 --- a/okio/src/jvmMain/kotlin/okio/internal/Logger.kt +++ b/okio/src/jvmMain/kotlin/okio/internal/Logger.kt @@ -1,6 +1,6 @@ package okio.internal -class Logger(name: String) { +internal class Logger internal constructor(name: String) { private val logger: java.util.logging.Logger = java.util.logging.Logger.getLogger(name) fun warn(msg: String, e: Throwable): Unit = logger.log(java.util.logging.Level.WARNING, msg, e) }