How to Change Log Levels

Quantum Fabric Console contains three components: portal, accounts, and workspace.

For console log files, by default log level value is set to INFO:

  • The following are the log file names for the console components:
    • mbaasportal.log (for mbaas portal)
    • accountsService.log (for accounts)
    • and workspaceService.log (for workspace)
  • For Identity services, the log file is authService.log. The default log level for identity services is set to INFO:

  • For Integration services, the log file is middleware.log. The default log level for integration services is set to INFO:

  • For Engagement Services, the log file is kms.log. The default log level for Engagement Service is set to INFO:

To change log levels for mbaasportal.log, follow these steps:

  1. Go to <Quantum Fabric install directory>/deployments/mfconsole.war/WEB-INF/classes/ and open the config.properties file.
  2. Change the log level to the required value.
  3. Restart the server.

To change log levels for accountsService.log, follow these steps:

  1. Go to accountsdb -> accounts_configurations table, search for key KONY_ACCOUNTS_LOG_LEVEL.
  2. Change the log level to the required value.

To change log levels for workspaceService.log, follow these steps:

  1. Go to <mfconsoledb -> property table, search for key  LOG_LEVEL.
  2. Change the log level to the required value.

To change log levels for authService.log, follow these steps:

  1. Go to <Quantum Fabric install directory>/deployments/authService.war/WEB-INF/classes/ and open the authService.properties file.
  2. Change the log level to the required value.
  3. Redeploy the authService.war file

To change log levels for middleware logs, follow these steps:

  1. Go to admin db > server_configuration table, and search for <Kony Fabric install diSERVER_LOG_LEVEL
  2. Change the log level to the required value.

To change log levels for metrics.log, follow these steps:

  1. Go to reportsdb -> metrics_configuration, search for key KONY_METRICS_LOG_LEVEL.
  2. Change the log level to the required value.

To change log levels for Engagement Services logs, follow these steps:

  1. Go to <Quantum Fabric install directory>/deployments/kpns.war/WEB-INF/ and open the kms-log4j2.xml file.
  2. Change the log level to the required value.
  3. Restart the server.

For more details on Logs in Quantum Fabric, refer to Basecamp.

Log-related Options in Fabric Databases

The locations of log-related options in the various Fabric databases are as follows:

  • Console

    mfconsoledbpropertyLOG_LEVEL

  • Accounts

    Accountsdbaccounts_configurationsKONY_ACCOUNTS_LOG_LEVEL

  • Auth (Identity)
    • IdconfigdbpropertyLOG_OPTION
    • IdconfigdbpropertyLOG_LOCATION
    • IdconfigdbpropertyLOG_LEVEL
  • Middleware

    ADMINDBSERVER_CONFIGURATIONSERVER_LOG_LEVELDEBUG ADMINDBSERVER_CONFIGURATIONSERVER_LOG_LOCATION

  • KPNS (Engagement)
    • KPNSDBconfig_resourcesKONY_ENGAGEMENT_LOG_LOCATION
    • KPNSDBconfig_resourcesKONY_ENGAGEMENT_LOG_OPTION
    • KPNSDBconfig_resourcesKONY_ENGAGEMENT_LOG_LEVEL
  • Metrics

    REPORTSDBmetrics_configurationKONY_METRICS_LOG_LEVEL

You can also configure logs from the Admin Console by using this link:

http://<host>:<port>/admin/console/logs/standardlogs.html

NOTE: Ensure that you replace the <host> and <port> values based on your Fabric Console URL.