Compare commits

...

8 Commits

5 changed files with 16 additions and 8 deletions

View File

@@ -1,5 +1,13 @@
# Changelog # Changelog
## 0.5.1
* New property `defaultMessageFormatterWithErrorPrint` for messages format with errors
## 0.5.0
* `Kotlin`: `1.7.10`
## 0.4.2 ## 0.4.2
* Add `setDefaultKSLog` and `addDefaultKSLog` * Add `setDefaultKSLog` and `addDefaultKSLog`

View File

@@ -9,5 +9,5 @@ android.enableJetifier=true
# Project data # Project data
group=dev.inmo group=dev.inmo
version=0.4.2 version=0.5.1
android_code_version=12 android_code_version=14

View File

@@ -1,12 +1,12 @@
[versions] [versions]
kotlin = "1.6.21" kotlin = "1.7.10"
kotlin-gradle-plugin = "7.0.4" kotlin-gradle-plugin = "7.2.2"
dexcount = "3.1.0" dexcount = "3.1.0"
junit_version = "4.12" junit_version = "4.12"
test_ext_junit_version = "1.1.2" test_ext_junit_version = "1.1.3"
espresso_core = "3.3.0" espresso_core = "3.4.0"
android-minSdk = "21" android-minSdk = "21"
android-compileSdk = "32" android-compileSdk = "32"

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

View File

@@ -5,4 +5,4 @@ typealias MessageFormatter = (l: LogLevel, t: String?, m: Any, Throwable?) -> St
inline fun MessageFormatter(noinline formatter: MessageFormatter) = formatter inline fun MessageFormatter(noinline formatter: MessageFormatter) = formatter
typealias MessageFilter = (l: LogLevel, t: String?, Throwable?) -> Boolean typealias MessageFilter = (l: LogLevel, t: String?, Throwable?) -> Boolean
val defaultMessageFormatter: MessageFormatter = { l, t, m, _ -> "[$l] ${t ?.let { "$it " } ?: ""}- $m" } val defaultMessageFormatter: MessageFormatter = { l, t, m, _ -> "[$l] ${t ?.let { "$it " } ?: ""}- $m" }
val defaultMessageFormatterWithErrorPrint: MessageFormatter = { l, t, m, e -> "[$l] ${t ?.let { "$it " } ?: ""}- $m${e ?.let { ": ${it.stackTraceToString()}" } ?: ""}" }