Skip to content

Commit

Permalink
Format files.
Browse files Browse the repository at this point in the history
  • Loading branch information
AAkira committed Aug 22, 2021
1 parent 32b5f69 commit 221563a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
14 changes: 12 additions & 2 deletions napier/src/commonMain/kotlin/io/github/aakira/napier/Antilog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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?,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 221563a

Please sign in to comment.