All Kony Fabric Posts

Configure Log Levels from Admin Console

Ajay Bhat - Feb 13, 2017 - Integration

This post has been updated with feature updates for Kony Fabric V8 on 15th September 2017.

Logging and diagnosability are important 'features' in themselves, as they help developers and admins with troubleshooting and pinpointing issues with minimum hassle. In this post, Nagesh Santhapuri discusses how to configure log levels dynamically from the Admin Console to help with troubleshooting and diagnostics.

In Kony MobileFabric 7.2.5, we have introduced a UI-based setting to configure the log levels from Mobile Fabric Integration Server Console. This helps in configuring the log levels for a:

  1. Particular class or package and
  2. Configure filter to enable logging for particular client IP or User ID or Service Name.

This can be achieved without restarting the application server.

  1. Configure Log Level for class/package
  • Logging page appears on click of the Settings tab in the left panel of Admin console.

 

  • Provide the class/package name in the section Log Level by Class for which Log Level needs to be changed.
  • You can set the log level for each class/package, by selecting level in the dropdown on the right side.
  • Click on Save button once you are done with all the configurations.
  1. Set log Levels for Client IP (i.e. IP address of the client from which request came), Login ID (i.e. user id of the user from which request came) and Service ID (i.e. service id or name of the service).With Kony Fabric V8 release, we have two more filters – Device ID (device id of the device from which request came) and App ID (the Kony Fabric app id corresponding to this request).
  • In the Logging page go to Log Level by Client Filter section as shown below:
  • Log Level by Client Filter settings
  • IP address option
  • Select IP Address in the Select Parameter drop down and provide the Client IP address in the adjacent text box and select Log Level.
  • Click on Save button once added.
  • Similarly, for a Login ID and Service ID, examples are shown below:
  • Login ID option
  • Service ID option
  1. Enable Log Level Override from Client
    • This allows the client to send a request header named X-Kony-Log-Level-Override to the server during a service invocation and set the server side log level for that specific request allowing the client to turn on and off debug for their session.
    • Go to the Log Level by Client Filter section of the Logging page.
    • Enable the check box "Enable Log Level Override from Client" to enable Log Level override from client.
  2. If multiple conditions match, then the log level will be set to the highest (least constraint) value.Say Criteria1 is set to WARN and Criteria2 is set to DEBUG.If both matches, then the resultant log level will be DEBUG.
  3. Questions?

Please post your questions to the Kony Forums @  http://community.kony.com/