Logging
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.
import 'package:vwo_fme_flutter_sdk/vwo/models/vwo_init_options.dart';
// Create a VWOOptions object
final vwoOptions = VWOInitOptions(
sdkKey: 'your-sdk-key',
accountId: account_id,
logger: {
"level": "DEBUG",
}
);
// Create an instance of the SDK
VWO? vwoClient = await VWO.init(initOptions);
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 3 days ago