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:
Copy
const client = new NexmoClient({ debug: "debug" });
// Available options are silent, debug, info, warn, or error
Copy
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
Copy
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
Copy
NXMLogger.setLogLevel(.verbose)
// Available options are None (Default), Error, Debug, Info, Verbose
Copy
[NXMLogger setLogLevel: NXMLoggerLevelVerbose];
// Available options are None (Default), Error, Debug, Info, Verbose