Configure Logging Level

When debugging your application, you can set the logging level for the Client SDK which will change how much information the Client SDK prints out to the console. You must set your log level before the client is initialized. You can specify your log level in the client initializer:

If loaded with a <script> tag:

const client = new vonageClientSDK.VonageClient({
    loggingLevel: 'Verbose'
});

If loaded via import:

import { VonageClient } from '@vonage/client-sdk';

const client = new VonageClient({
    loggingLevel: 'Verbose'
});

Available options are Verbose, Debug, Info, Warn, Error, and Assert. Default is Error.