VWO by default logs all ERROR level messages to your device console (Logcat for Android)

To gain more control over VWO's logging behaviour, you can use this logger object as shown below.

// options object
const options: VWOInitOptions = {
	sdkKey: SDK_KEY,
	accountId: ACCOUNT_ID,
	logLevel: LogLevel.debug
};

// initialize VWO
const vwoClient = await init(options);

This "logger" object can be passed as one of the parameters when initializing vwoClient.

logger Properties

ParameterTypeDescription
levelStringLevel or Type of error. Could be one of the following : DEBUG, INFO, ERROR, TRACE, WARN