For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Enabling log capture
By default, log capture is enabled. Log capture saves logs to the client and can be enabled or disabled programmatically. Logs are sent to the server with an explicit send call, or with auto log
Logging can be enabled or disabled from the client.
Note: Enabling log capture at verbose levels can impact the consumption of the device CPU, file system space, and the size of the payload when the client sends logs over the network.
- iOS
To enable:
[OCLogger setCapture:YES];
To disable:
[OCLogger setCapture:NO];
Android To enable:
Logger.setCapture(true);
To disable:
Logger.setCapture(false);
Cordova JavaScript To enable:
WL.Logger.config({ capture: true });
To disable:
WL.Logger.config({ capture: false });
web To enable:
ibmmfpfanalytics.logger.enable(true);
To disable:
ibmmfpfanalytics.logger.enable(false);
Parent topic: Logger SDK