How To Set Logging Levels To Debug

 In order to diagnose problems it is often necessary to enable DEBUG logging, However for performance reasons the default logging levels are set to INFO. If a production system is left in debug logging mode it is recommended to increase the rotate size and number of backup logs files so the logging files don't roll over too quickly, which may resuly on losing useful logging regarding a production issue.  

To Enable Debug Logging

  1. Navigate to the FAS console at https://[SERVER]:9990
  2. Enter the credentials - defaults to admin/admin for trials or administrator/administrator for production environment.
  3. Select profiles --> ha (for app server - this is normally enough) or lb (for load balancer) --> core --> logging --> Edit



  4. Select DEBUG from the drop down list.
  5. Click Save.
  6. You will need to restart FAS for the changes to take effect. From the command line do service fas restart on a production environment or for trials environment do  ./stop-all.sh ; ./start-all.sh from the install directory.

Increasing the rotate size and number of backup logs files

  1. From the Logging page select the Handler tab --> Size --> Ensure File is selected.
  2. Edit the Rotate Size and Max backup index fields to the required values ensuring their is disk space on the server to accommodate the new files and save.
  3. You will need to restart FAS for the changes to take effect. From the command line do service fas restart on a production environment or for trials environment do  ./stop-all.sh ; ./start-all.sh from the install directory.

 Additional SIP Logging

Sometimes it is necessary to enable more detailed SIP logs. These can be enabled by:

  1. selecting Log Categories
  2. Highlighting org.mobicents
  3. Press Edit
  4. Select DEBUG Log Level
  5. Press Save
  6. FAS will need to be restarted for the change to take effect.

 

To Enable HTTP Logging

  1. Navigate to the FAS console at https://[SERVER]:9990
  2. Enter the credentials - defaults to admin/admin for trials or administrator/administrator for production environment.
  3. Select profiles --> lb --> core --> logging -->  Log Categories --> com.alicecallsbob.lb.http_logs --> Edit
  4. Select ALL from the drop down list.
  5. Click Save.
  6. You will need to restart FAS for the changes to take effect.

 

 

 

Comments are disabled on these articles if you require help contact support@cafex.com.

Have more questions? Submit a request

Comments

Powered by Zendesk