Show TOC

Logging OperationsLocate this document in the navigation structure

Log various application events, by specifying a log level, then upload the client log to SAP Mobile Platform Server for analysis.


Define client log and trace policies in the SAP Mobile Platform Server Management Cockpit or HANA Cloud Platform Mobile Services Cockpit. For detailed information see SAP Mobile Platform or SAP HANA Cloud Platform Mobile Platform See Managing Application Logs and Traces.


See Supportability for iOS for detailed information about logging and tracing.


  1. Initialize the logger, define a log level setting, and log messages:
    // Initializing logManager
    _logger = [[SAPSupportabilityFacade sharedManager] getClientLogger:@""];
    // Logging a message
    [_logger logInfo:@"Log something”];
  2. Retrieve logs:
    NSArray* logData = [[[SAPSupportabilityFacade sharedManager] getClientLogManager] 
    getLogEntriesForLogger: @"" withLevel:AllClientLogLevel];
  3. Upload the client log to SAP Mobile Platform Server:
    SupportabilityUploader* uploader = [[SupportabilityUploader alloc] 
    initWithHttpConversationManager:self.conversationManager urlRequest:request];
    [[[SAPSupportabilityFacade sharedManager] getClientLogManager] uploadClientLogs:uploader completion:^(NSError* error) {
            if (error == nil) {
                NSLog(@"upload succeeded");
            } else {
                NSLog(@"upload failed: %@", [error description]);