Minor: print a bit more info in log lines

This commit is contained in:
Mike Hearn 2016-04-25 15:22:10 +02:00
parent 40f43fd7c8
commit 1b3e919df7

View File

@ -33,7 +33,7 @@ class BriefLogFormatter : Formatter() {
else -> ""
}
val fullClassName = logRecord.sourceClassName
val dollarIndex = fullClassName.indexOf('$')
val dollarIndex = fullClassName.lastIndexOf('$')
val className = fullClassName.substring(fullClassName.lastIndexOf('.') + 1, if (dollarIndex == -1) fullClassName.length else dollarIndex)
arguments[2] = className
arguments[3] = logRecord.sourceMethodName