@vonage/client-sdk - v2.7.0
    Preparing search index...

    Type Alias ClientInitConfigObject

    ClientInitConfigObject:
        | InitConfigObjectJS
        | {
            customLoggers?: VonageLogger[];
            loggingLevel?: LoggingLevel;
            region?: ConfigRegion;
        } & Omit<InitConfigObjectJS, "region" | "loggingLevel" | "customLoggers">

    Represents the configuration object used to initialize the client.

    The ClientInitConfig class provides a convenient way to configure the client by specifying various properties. These properties include all the ones in ClientConfigObject plus loggingLevel, customLoggers and disableInternalLogger.

    const clientA = new VonageClient({
      loggingLevel: LoggingLevel.Error
    });
    // or setup custom loggers
    const clientB = new VonageClient({
      disableInternalLogger: true,
      customLoggers: [
        {
          name: 'CustomLoggerOne',
          minLogLevel: LoggingLevel.Debug,
          topics: ['HTTP', Topics.API],
          onLog: (level, topic, message) => {
            console.log(`${level} ${topic.name} ${topic.tag} ${message}`);
          }
        },
        createVonageLogger('CustomLoggerTwo', (level, topic, message) => {
          console.log(`${level} ${topic.name} ${topic.tag} ${message}`);
        })
      ]
    });