Skip to content

Commit

Permalink
Make loggers kotlin-internal
Browse files Browse the repository at this point in the history
  • Loading branch information
Sineaggi committed Jun 4, 2024
1 parent 5ee60c7 commit 2ab80d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion okio/src/jvmJava9/kotlin/okio/internal/Logger.kt
Original file line number Diff line number Diff line change
@@ -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)
}
2 changes: 1 addition & 1 deletion okio/src/jvmMain/kotlin/okio/internal/Logger.kt
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 2ab80d8

Please sign in to comment.