Send logs to the server according to your application's logic. Auto log send can also be enabled to automatically send logs. If logs are not sent before the maximum size is reached, the log file is then purged in favor of newer logs.
[NSTimer scheduledTimerWithTimeInterval:60
target:[OCLogger class]
selector:@selector(send)
userInfo:nil
repeats:YES];
Timer timer = new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
Logger.send();
}
}, 0, 60000);
setInterval(function() {
WL.Logger.send();
}, 60000);
setInterval(function() {
ibmmfpfanalytics.logger.send();
}, 60000);
[OCLogger setMaxFileSize:150000];
Logger.setMaxFileSize(150000);
WL.Logger.config({ maxFileSize: 150000 });
The maximum file size for the web API is 5 mb and cannot be changed.