Defining Client Log Policies¶
Define the policy for uploading client logs to the database.
Log settings for an application are applied to all installed instances of an application. You can override those application-level settings for a particular device, by changing the settings for a particular “deviceID”.
In SAP mobile service cockpit, select
SAP Mobile CardsSelect an application, then select
Log Policy, select
Enable Client Log Upload. Select the log level (default is
Log Level Description Debug For debugging purposes, includes extensive and low-level information. Info Informational text, used mostly for echoing what has been performed. Warn The application can recover from the anomaly, and fulfill the task, but requires attention from the developer or operator. Error The application can recover from the error, but cannot fulfill the task due to the error. Fatal The application cannot recover from the error, and the severe situation causes fatal termination. Path For tracing execution flow. Used, for example, in the context of entering and leaving a method, looping, and branching operations. (Not applicable to the offline logging component.)
Select the time period after which logs are deleted from the database.
You should retrieve these settings at runtime, for more information see Uploading and Viewing Client Logs. By default, log files exist in the database for seven days. To read the logs, see Viewing Event Logs.
Enter the maximum number of log files that can be stored on the user's system at the same time. Choose a value from 1-99999.
Enter the maximum size of each log file. Choose a value from 0-99999 MB. '0 MB' indicates that the file size is unlimited.
If the maximum number of log files or file size exceeds the defined value, the oldest log file will be deleted and the logs will be written to a new log file. This can happen irrespective of whether the logs are uploaded to the server or not. To ensure the logs are retained, you can set the maximum number of log files to "1" and file size to 0 MB.