For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Fetching server configuration profiles
Logging level can be set by retrieving server configuration files.
Logging levels can be set by the client (see Adjusting log verbosity) or by retrieving configuration profiles from the server. From the MobileFirst Operations Console, a log level can be set globally (all logger instances) or for a specific package or packages. For the client to fetch the configuration overrides that are set on the server, the updateConfigFromServer method must be called from a place in the code that is regularly run, such as in the app lifecycle callbacks.
To call the updateConfigFromServer method, follow these steps.
- iOS
[OCLogger updateConfigFromServer];
Android Logger.updateConfigFromServer();
Cordova (JavaScript) WL.Logger.updateConfigFromServer();
web (JavaScript) ibmmfpfanalytics.logger.updateConfigFromServer();
What to do next
We can configure the client log levels from the MobileFirst Operations Console. For more information, see Set Log Filters from the MobileFirst Operations Console.
Parent topic: Logger SDK