anko
anko copied to clipboard
AnkoLogger - verbose() and debug() not working
Here is my code
import android.app.Activity
import android.os.Bundle
import org.jetbrains.anko.*
class MainActivity : Activity(), AnkoLogger {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
verbose("verbose")
info("info")
debug("debug")
warn("warn")
error("error")
wtf("wtf")
}
}
Output
I/MainActivity: info
W/MainActivity: warn
E/MainActivity: error
wtf
Why verbose and debug does not show anything?
They are by default not turned on in Android. This is a according to design: See https://github.com/Kotlin/anko/issues/104#issuecomment-155486633 for more info.
If you want to be able to turn on this by default I guess upvoting this issue is the way to go.