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.
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.
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.