Lucas Ł
08/18/2018, 5:36 PMTimber
a tryJakub
08/18/2018, 5:49 PMno
08/18/2018, 6:19 PMlouiscad
08/18/2018, 8:29 PMJakub
08/18/2018, 8:32 PMJakub
08/18/2018, 8:32 PMJakub
08/18/2018, 8:32 PMLucas Ł
08/19/2018, 11:29 AM// Standard timber
Timber.d("%d %s", intVar + 3, stringFun())
// Kotlin extensions
Timber.d { "${intVar + 3} ${stringFun()}" }
The only difference is one accepts a ()->String
as a parameter instead of a String
value...
And why would you use string format, when you can use string interpolation without this library...
I'd say the author is dishonest about comparing the two...
// Standard timber
Timber.d("${intVar + 3} ${stringFun()}")
// Kotlin extensions
Timber.d { "${intVar + 3} ${stringFun()}" }
this is more like it
Why would it matter when you're evaluating the logged message?
If logging slows your application so much, you're probably logging too much in the first placelouiscad
08/19/2018, 11:40 AM