anko icon indicating copy to clipboard operation
anko copied to clipboard

AnkoLogger - verbose() and debug() not working

Open gmikhail opened this issue 7 years ago • 1 comments

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?

gmikhail avatar Mar 31 '18 13:03 gmikhail

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.

Rawa avatar Apr 03 '18 13:04 Rawa