Skip to content

Logging

kristiyan-petrov edited this page Nov 22, 2023 · 2 revisions

Logging can be enabled via the Kaleyra Video Configuration object.

It is not advised to log release configuration for security reasons

val configuration = Configuration(
        appId = "mAppId_xxx",
        environment = Environment.Sandbox // Production
        region = Region.Europe // India, US
        logger = object : PriorityLogger() {

            override fun verbose(tag: String, message: String) {
                Log.v(tag, message)
            }

            override fun debug(tag: String, message: String) {
                Log.d(tag, message)
            }

            override fun info(tag: String, message: String) {
                Log.i(tag, message)
            }

            override fun warn(tag: String, message: String) {
                Log.w(tag, message)
            }

            override fun error(tag: String, message: String) {
                Log.e(tag, message)
            }
        }
    )
KaleyraVideo.configure(configuration)
Clone this wiki locally