VWO by default logs all ERROR level messages to your server console.

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

Map<String, Object> logger = new HashMap<>();
logger.put("level", "INFO");  // DEBUG, INFO, ERROR, TRACE, WARN  
logger.put("prefix", "VWO");

vwoInitOptions.setLogger(logger);

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
prefixStringThe text that is prefixed to the error messages when logged. Defaults to 'VWO'.

What’s Next