I need to print some str to console (Android Studio) using Kotlin. I\'ve tried the:
Log.v()
Log.d()
Log.i()
Log.w()
Log.e()
methods. But i
androidKotlin is deprecated and use Anko instead.
https://github.com/Kotlin/anko/wiki/Anko-Commons-%E2%80%93-Logging
class SomeActivity : Activity(), AnkoLogger {
private fun someMethod() {
info("London is the capital of Great Britain")
debug(5) // .toString() method will be executed
warn(null) // "null" will be printed
}
}