Logging level can be set by retrieving server configuration
files.
About this task
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
You can configure the client log levels from the
MobileFirst Operations Console.
For more information, see
Setting Log Filters from the MobileFirst Operations Console.