Style(Code): Optimize code style

This commit is contained in:
2024-08-20 18:24:27 +08:00
parent b115d3d598
commit 18c03c194b
83 changed files with 424 additions and 349 deletions

View File

@@ -12,7 +12,7 @@ import java.time.format.DateTimeFormatter
class HttpLogger : HttpLoggingInterceptor.Logger {
override fun log(message: String) {
Timber.i(message)
Timber.i(message = message)
}
}
@@ -39,7 +39,7 @@ class OxygenLogTree(
if (logFile.length() >= maxFileSize) {
rotateLogFile()
}
logFile.appendText(format(priority, tag, message, t))
logFile.appendText(text = format(priority = priority, tag = tag, message = message, t = t))
} catch (e: Exception) {
Log.e("OxygenLogTree", "Error writing log message to file", e)
}
@@ -78,4 +78,4 @@ class OxygenLogTree(
)
logFile.createNewFile()
}
}
}