william
09/29/2020, 1:54 AM// usage
MyLogger.log("foo")
// impl
inline fun <reified T : Any> T.log(msg: String) {
// ...
val caller = T::class.simpleName
}
Nir
09/29/2020, 2:07 AMnanodeath
09/29/2020, 2:45 AMThread.currentThread().stackTrace
coroutinedispatcher
09/29/2020, 5:39 AMAny
Tobias Berger
09/29/2020, 7:40 AMflosch
09/29/2020, 7:51 AMwhat's wrong with your example code? Shouldn't
that already work?
No, his code will always have
MyLogger
as caller
flosch
09/29/2020, 7:53 AMTobias Berger
09/29/2020, 7:54 AMStephan Schroeder
09/29/2020, 8:53 AMSaul Wiggin
09/29/2020, 9:32 AMNir
09/29/2020, 1:34 PMNir
09/29/2020, 1:34 PMNir
09/29/2020, 1:35 PMNir
09/29/2020, 1:35 PMNir
09/29/2020, 1:36 PMNir
09/29/2020, 1:52 PMwilliam
09/29/2020, 4:18 PM