Logging
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.
let options = VWOInitOptions(sdkKey: sdkKey, accountId: accountId, logLevel: .info)
// Initialize VWO SDK
VWOFme.initialize(options: options) { result in
switch result {
case .success(let message):
// VWO SDK initialized
case .failure(let error):
// VWO SDK failed to initialize
}
}
This "logger" object can be passed as one of the parameters when initializing vwoClient.
logger Properties
Parameter | Type | Description |
---|---|---|
level | String | Level or Type of error. Could be one of the following : DEBUG, INFO, ERROR, TRACE, WARN |
Updated about 1 month ago