+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Set Log Filters from the MobileFirst Operations Console

From the MobileFirst Operations Console, you create, edit, and delete client log filters on a registered application. Log filters take effect if the application includes specific method calls.

For any application that is registered on MobileFirst Operations Console, we can configure the verbosity of the log level that the client device can capture and send back to MobileFirst Server using log filters.


Procedure

  1. Under Runtimes > Applications, select the application for which we want to configure the log level.
  2. Click the Log Filters tab.
  3. In the Create Log Filter dialog, follow the contextual instructions and click Save when you are finished.

    We can edit an existing log filter by clicking the pencil-shaped icon to open the Edit Log Filter dialog.

    A success message is displayed.


Results

Add, modifying, or deleting a log filter from the MobileFirst Operations Console does not take effect on the device in real time. These changes take effect only if the developer has coded the client app to pull the client log in the application, by using either of the following API calls, provided by the SDK (see Fetching server configuration profiles).

Each time the filters are retrieved, the device is synchronized with the log profile. A good practice is to put the appropriate API call in the application code path that gets executed often, for example when the application starts or when application foreground events occur.


What to do next

We can later retrieve or view client logs on the MobileFirst Analytics Console.

Parent topic: Configure analytics from the MobileFirst Operations Console