Optional: Setting the Severity Level for a Message

Use

You use this procedure to set the level of importance or relevance of a message.

In SAP Logging, there are categories and locations on which you can write messages and set the severity level for each message.

Procedure

  1. On the Mobile client, in the ..\SAP NetWeaver Mobile Client\... path, locate the Settings folder.

  2. In the logconfig.properties file, enter the following details to set the severity level for a message:

    Name

    Description

    Controller

    Defines the location of a trace message or the category of a log message

    Minimum Severity

    Defines the minimum level of importance of the message

    Maximum Severity

    Defines the maximum level of importance of the message

  3. Save the logconfig.properties file.

Example

The new parameter settings apply when the mobile application user logs on SAP NetWeaver Mobile.

The following table displays some examples of message severity settings:

Settings

Description

. info error

Sets the minimum and maximum severity of the root location (.) to information and error, respectively

\ debug error

Sets the minimum and maximum severity of the root category (\) to debug and error, respectively

\mycategory\mysubcategory info warning

Sets the minimum and maximum severity of \mycategory\mysubcategory to information and warning, respectively

com.mylocation debug warning

Sets the minimum and maximum severity of com.mylocation to debug and warning, respectively