All Downloads are FREE. Search and download functionalities are using the official Maven repository.

androidMain.com.algolia.instantsearch.insights.internal.logging.InsightsLogger.kt Maven / Gradle / Ivy

Go to download

InstantSearch Android is a library providing widgets and helpers to help you build the best instant-search experience on Android with Algolia. It is built on top of Algolia's Kotlin API Client to provide you a high-level solution to quickly build various search interfaces.

There is a newer version: 3.3.1
Show newest version
package com.algolia.instantsearch.insights.internal.logging

import android.util.Log
import com.algolia.search.model.IndexName

internal actual object InsightsLogger {

    private const val TAG = "Algolia Insights"
    actual var enabled: MutableMap = mutableMapOf()

    actual fun log(indexName: IndexName, message: String) {
        if (enabled[indexName] == true) {
            Log.d(TAG, "Index=$indexName: $message")
        }
    }

    actual fun log(message: String) {
        Log.d(TAG, message)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy