generated from rnentjes/kotlin-server-web-empty
Fix caller stack trace depth and update version
Adjusted the caller stack trace depth to accurately capture the caller method. Updated Gradle build version from 1.1.0 to 1.1.1 to reflect the changes. Improved logging level representation by using 'label' instead of 'name'.
This commit is contained in:
@@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "nl.astraeus"
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -55,7 +55,7 @@ class Logger(
|
||||
}
|
||||
logEntry.append(timestamp)
|
||||
logEntry.append(" - ")
|
||||
logEntry.append(level.name)
|
||||
logEntry.append(level.label)
|
||||
logEntry.append(" - ")
|
||||
if (thread != null) {
|
||||
logEntry.append(thread)
|
||||
|
||||
@@ -6,4 +6,4 @@ actual fun getTimestamp(): String = Date().toString()
|
||||
|
||||
actual fun getCurrentThread(): String? = Thread.currentThread().name
|
||||
|
||||
actual fun getCaller(): String? = Throwable().stackTrace[2].toString()
|
||||
actual fun getCaller(): String? = Throwable().stackTrace[3].toString()
|
||||
Reference in New Issue
Block a user