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

jvmMain.com.algolia.search.logging.Logger.kt Maven / Gradle / Ivy

Go to download

"Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations. Algolia API Client for Kotlin lets you easily use the Algolia Search REST API from your JVM project, such as Android or backend implementations."

There is a newer version: 3.12.2
Show newest version
package com.algolia.search.logging

import io.ktor.client.HttpClient
import org.slf4j.LoggerFactory

/**
 * [Logger] implementation using Simple Logging Facade for Java (SLF4J).
 */
public val Logger.Companion.Slf4j: Logger
    get() = object : Logger {
        private val delegate = requireNotNull(LoggerFactory.getLogger(HttpClient::class.java))
        override fun log(message: String) {
            delegate.info(message)
        }
    }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy