For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Auto log send
By default, auto log send is enabled. Each time a successful resource request is sent to the server, the captured logs are also sent, with a 60-second minimum interval between sends.
Auto log send can be enabled or disabled from the client. By default auto log send is enabled.
- iOS
To enable:
[OCLogger setAutoSendLogs:YES];
To disable:
[OCLogger setAutoSendLogs:NO];
Android To enable:
Logger.setAutoSendLogs(true);
To disable:
Logger.setAutoSendLogs(false);
Cordova JavaScript To enable:
WL.Logger.config({autoSendLogs: true});
To disable:
WL.Logger.config({autoSendLogs: false});
web To enable:
ibmmfpfanalytics.enableAutoSend(true);
To disable:
ibmmfpfanalytics.enableAutoSend(false);
Parent topic: Logger SDK