Skip to content

Commit

Permalink
Fix code formatting issue
Browse files Browse the repository at this point in the history
Introduced with pull request #65.
  • Loading branch information
saschpe committed Nov 5, 2024
1 parent 903d4d2 commit c4fdea4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions log4k/src/appleMain/kotlin/saschpe/log4k/ConsoleLogger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ actual class ConsoleLogger : Logger() {
private val dateFormatter = NSDateFormatter().apply { dateFormat = "MM-dd HH:mm:ss.SSS" }

actual override fun print(level: Log.Level, tag: String, message: String?, throwable: Throwable?) =
NSLog("${getCurrentTime()} ${levelMap[level]} ${tag.ifEmpty { getTraceTag() }}: %s",
message ?: ""
NSLog(
"${getCurrentTime()} ${levelMap[level]} ${tag.ifEmpty { getTraceTag() }}: %s",
message ?: "",
)

private fun getCurrentTime() = dateFormatter.stringFromDate(NSDate())
Expand Down

0 comments on commit c4fdea4

Please sign in to comment.