Anko: AnkoLogger - verbose() and debug() not working

Created on 31 Mar 2018  路  1Comment  路  Source: Kotlin/anko

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?

Most helpful comment

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.

>All comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HarryTylenol picture HarryTylenol  路  3Comments

maomaobug picture maomaobug  路  4Comments

vlonjatg picture vlonjatg  路  3Comments

lupajz picture lupajz  路  3Comments

bapspatil picture bapspatil  路  4Comments