Previous Next JavaScript must be enabled to correctly display this content

## 13 Logging Area

This topic describes the logging area where the Oracle Banking Microservices Architecture Applications deployed in the WebLogic server.

Dynamic Logging

This will basically provide the developers to change different parameters related to logging in runtime. plato-logging facility has been incorporated in the plato-core dependency.

Plato-logging-service is dependent on two tables which are to be present in the PLATO schema (JNDI name: jdbc/PLATO). The two tables are as follows:

1. PLATO_DEBUG_USERS: This table will contain the information about whether the dynamic logging will be enabled to a particular user for a particular service. The table will contain have records where DEBUG_ENABLED values for a particular user and a particular service will having values ‘Y’ or ‘N’ and depending on that plato-logger will enable dynamic logging.

   Figure 13-1 PLATO_DEBUG_USERS

   Description of "Figure 13-1 PLATO_DEBUG_USERS"
2. PLATO_LOGGER_PARAM_CONFIG:This table will contain the key-value entries of different parameters that can be changed at runtime for the dynamic logging. The values that can be passed are as follows:
   - LOG_PATH: This will specify a dynamic logging path for the logging files to be stored. Changing this in runtime will change the location of the log files at runtime. If this value is not passed then by default the LOG_PATH value will be taken from the -D parameter of “`plato.service.logging.path`”
   - LOG_LEVEL: The level of the logging can be specified on runtime as “INFO” or “ERROR” etc. The default value of this can be set in the logback.xml.
   - LOG_MSG_WITH_TIME: Making this ‘Y’ will append the current date into the logfile name. Setting the value of this as ‘N’ will not append the current date into the filename.

   Figure 13-2 PLATO_LOGGER_PARAM_CONFIG

   Description of "Figure 13-2 PLATO_LOGGER_PARAM_CONFIG"

Logging Area

Plato Application writes logs in the below area of the server:

`<WEBLOGIC_DOMAIN_CONFIG_AREA>/ logs/plato-api-gateway.log`

For example, consider that a domain is created platoinfra_domain in the server `/scratch/oracle/middleware/user_projects/domains/platoinfra_domain`.

Logging area for Plato

`=<URL>`