diff --git a/napier/src/androidMain/kotlin/io/github/aakira/napier/DebugAntilog.kt b/napier/src/androidMain/kotlin/io/github/aakira/napier/DebugAntilog.kt index f28933e..d09668b 100644 --- a/napier/src/androidMain/kotlin/io/github/aakira/napier/DebugAntilog.kt +++ b/napier/src/androidMain/kotlin/io/github/aakira/napier/DebugAntilog.kt @@ -16,7 +16,12 @@ actual class DebugAntilog actual constructor(private val defaultTag: String) : A private val anonymousClass = Pattern.compile("(\\$\\d+)+$") - override fun performLog(priority: LogLevel, tag: String?, throwable: Throwable?, message: String?) { + override fun performLog( + priority: LogLevel, + tag: String?, + throwable: Throwable?, + message: String?, + ) { val debugTag = tag ?: performTag(defaultTag) diff --git a/napier/src/commonMain/kotlin/io/github/aakira/napier/Antilog.kt b/napier/src/commonMain/kotlin/io/github/aakira/napier/Antilog.kt index b08fa54..bfd3d60 100644 --- a/napier/src/commonMain/kotlin/io/github/aakira/napier/Antilog.kt +++ b/napier/src/commonMain/kotlin/io/github/aakira/napier/Antilog.kt @@ -10,9 +10,19 @@ abstract class Antilog { } } - internal fun rawLog(priority: LogLevel, tag: String?, throwable: Throwable?, message: String?) { + internal fun rawLog( + priority: LogLevel, + tag: String?, + throwable: Throwable?, + message: String?, + ) { performLog(priority, tag, throwable, message) } - protected abstract fun performLog(priority: LogLevel, tag: String?, throwable: Throwable?, message: String?) + protected abstract fun performLog( + priority: LogLevel, + tag: String?, + throwable: Throwable?, + message: String?, + ) } diff --git a/napier/src/jsMain/kotlin/io/github/aakira/napier/DebugAntilog.kt b/napier/src/jsMain/kotlin/io/github/aakira/napier/DebugAntilog.kt index 395a5f9..6eb1744 100644 --- a/napier/src/jsMain/kotlin/io/github/aakira/napier/DebugAntilog.kt +++ b/napier/src/jsMain/kotlin/io/github/aakira/napier/DebugAntilog.kt @@ -2,7 +2,12 @@ package io.github.aakira.napier actual class DebugAntilog actual constructor(private val defaultTag: String) : Antilog() { - override fun performLog(priority: LogLevel, tag: String?, throwable: Throwable?, message: String?) { + override fun performLog( + priority: LogLevel, + tag: String?, + throwable: Throwable?, + message: String?, + ) { val logTag = tag ?: defaultTag val fullMessage = if (message != null) { diff --git a/napier/src/jvmMain/kotlin/io/github/aakira/napier/DebugAntilog.kt b/napier/src/jvmMain/kotlin/io/github/aakira/napier/DebugAntilog.kt index 511019b..41f66dd 100644 --- a/napier/src/jvmMain/kotlin/io/github/aakira/napier/DebugAntilog.kt +++ b/napier/src/jvmMain/kotlin/io/github/aakira/napier/DebugAntilog.kt @@ -47,7 +47,12 @@ actual class DebugAntilog( LogLevel.ASSERT to "[ASSERT]" ) - override fun performLog(priority: LogLevel, tag: String?, throwable: Throwable?, message: String?) { + override fun performLog( + priority: LogLevel, + tag: String?, + throwable: Throwable?, + message: String?, + ) { val debugTag = tag ?: performTag(defaultTag)