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 can specify your log level:
JavaScript
Java
Swift
Objective-C
const client = new NexmoClient({ debug: "debug" });
// Available options are silent, debug, info, warn, or error
import com.nexmo.client.NexmoClient
import com.nexmo.utils.logger.ILogger.eLogLevel
val nexmoClient = NexmoClient.Builder()
.logLevel(eLogLevel.SENSITIVE)
.build(this)
// Available options are CRITICAL, WARNING, DEBUG, INFO, VERBOSE, SENSITIVE
import com.nexmo.client.NexmoClient;
import com.nexmo.utils.logger.ILogger.eLogLevel;
NexmoClient client = new NexmoClient.Builder()
.logLevel(eLogLevel.SENSITIVE)
.build(this);
// Available options are CRITICAL, WARNING, DEBUG, INFO, VERBOSE, SENSITIVE
NXMLogger.setLogLevel(.verbose)
// Available options are None (Default), Error, Debug, Info, Verbose
[NXMLogger setLogLevel: NXMLoggerLevelVerbose];
// Available options are None (Default), Error, Debug, Info, Verbose