From 767a1ae2aeba629e1e51e44af110bfd2f7b60552 Mon Sep 17 00:00:00 2001 From: Ohad Shai Date: Tue, 1 Aug 2023 09:46:10 +0300 Subject: [PATCH] move DelegatingKLogger to separate file (#344) --- .../io/github/oshai/kotlinlogging/DelegatingKLogger.kt | 6 ++++++ .../kotlin/io/github/oshai/kotlinlogging/KLogger.kt | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 src/commonMain/kotlin/io/github/oshai/kotlinlogging/DelegatingKLogger.kt diff --git a/src/commonMain/kotlin/io/github/oshai/kotlinlogging/DelegatingKLogger.kt b/src/commonMain/kotlin/io/github/oshai/kotlinlogging/DelegatingKLogger.kt new file mode 100644 index 00000000..f468588d --- /dev/null +++ b/src/commonMain/kotlin/io/github/oshai/kotlinlogging/DelegatingKLogger.kt @@ -0,0 +1,6 @@ +package io.github.oshai.kotlinlogging + +public interface DelegatingKLogger { + /** The actual logger executing logging */ + public val underlyingLogger: T +} diff --git a/src/commonMain/kotlin/io/github/oshai/kotlinlogging/KLogger.kt b/src/commonMain/kotlin/io/github/oshai/kotlinlogging/KLogger.kt index 2bce707f..109fba4e 100644 --- a/src/commonMain/kotlin/io/github/oshai/kotlinlogging/KLogger.kt +++ b/src/commonMain/kotlin/io/github/oshai/kotlinlogging/KLogger.kt @@ -852,8 +852,3 @@ public interface KLogger { @Deprecated("Use error instead", ReplaceWith("error(t, marker, msg)")) public fun error(marker: Marker?, msg: String?, t: Throwable?): Unit = error(t, marker) { msg } } - -public interface DelegatingKLogger { - /** The actual logger executing logging */ - public val underlyingLogger: T -}