+

Search Tips   |   Advanced Search

Client-side log capture configuration from the operations console

Start in IBM Worklight v6.2, administrators can use the Log Configuration subtab in the Catalog tab of the operations console to affect client logger configuration. Administrators can adjust the log level and log package filters for any combination of operating system, operating system version, application, application version, and device model.

When the MobileFirst administrator creates a configuration profile, the log configuration is piggybacked on responses to explicit WLClient connect and invokeProcedure API calls, and is applied automatically.

When the MobileFirst administrator removes a configuration profile, the client reverts to its configuration before the server configuration profile override upon the next client application WLClient connect and invokeProcedure API calls.


What is provided on the client side?

Android

    com.worklight.common.Logger

Native Android code that calls the android.util.Log.* API is not captured in the client-side logs. Developers must use com.worklight.common.Logger to capture client-side logs. For more information about the com.worklight.common.Logger API, see the Logger class.

Alternatively, developers can use standard java.util.logging.Logger in their code with the understanding that levels, filtering, and capturing are still controlled in the com.worklight.common.Logger class. No java.util.logging.Logger method calls are captured until the com.worklight.common.Logger.setContext(Context) method is called.

iOS

    OCLogger

Native iOS code that calls nslog directly is not captured in the client-side logs. Developers must use OCLogger to capture client-side logs. For more information about the OCLogger API, see Objective-C client-side API for iOS apps.

JavaScript

    WL.Logger

JavaScript code that calls console.log directly is not captured in the client-side logs. Developers must use WL.Logger to capture client-side logs. For more information about the WL.Logger API, see the WL.Logger API.


Parent topic: Client-side log capture