Configurar el nivel de registro
Cuando depure su aplicación, puede establecer el nivel de registro para el Client SDK, que cambiará la cantidad de información que el Client SDK imprime en la consola. Debe establecer el nivel de registro antes de inicializar el cliente. Puede especificar su nivel de registro en el inicializador del cliente:
Si se carga con un <script> etiqueta:
const client = new vonageClientSDK.VonageClient({
loggingLevel: 'Verbose'
});
Si se carga a través de import:
import { VonageClient } from '@vonage/client-sdk';
const client = new VonageClient({
loggingLevel: 'Verbose'
});
Las opciones disponibles son Verbose, Debug, Info, Warn, Error y Assert. Por defecto es Error.
val initConfig = VGClientInitConfig(LoggingLevel.Verbose)
val client = VoiceClient(this.application.applicationContext, initConfig)
// Available options are Verbose, Debug, Info, Warn, and Error
let initConfig = VGClientInitConfig(loggingLevel: .verbose)
let client = VGVonageClient(initConfig)
// Available options are Verbose, Debug, Info, Warn, and Error