Anko: debug(value) not working

Created on 30 Jul 2016  路  1Comment  路  Source: Kotlin/anko

class LocationService : Service(), GpsStatus.Listener, LocationListener, AnkoLogger {
    override fun onLocationChanged(location: Location) {
        Log.d("LocationService", location.latitude.toString()) // working
        debug(location.latitude.toString()) // not working
    }

have no idea why it's not working.

Anko Layouts as designed question

Most helpful comment

All Log.* will log to logcat regardless of what the current log level is. However, AnkoLogger.* will only log to logcat when its log level is loggable.

>All comments

All Log.* will log to logcat regardless of what the current log level is. However, AnkoLogger.* will only log to logcat when its log level is loggable.

Was this page helpful?
0 / 5 - 0 ratings