omit package name while logging
This commit is contained in:
parent
70c83c17e0
commit
16836ce535
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class AAPSLoggerProduction : AAPSLogger {
|
|||
}
|
||||
}
|
||||
|
||||
fun StackTraceElement.toLogString(): String = "[${this.className}.${this.methodName}():${this.lineNumber}]: "
|
||||
fun StackTraceElement.toLogString(): String = "[${this.className.substringAfterLast(".")}.${this.methodName}():${this.lineNumber}]: "
|
||||
|
||||
/* Needs to be inline. Don't remove even if IDE suggests it. */
|
||||
private inline fun stackLogMarker() = Throwable().stackTrace[1].toLogString()
|
Loading…
Reference in a new issue