Access Application Log Files
If an application or a service encounter any errors, you can use the application log files that provide useful troubleshooting information.
Access Standard (Windows) Web Client Logs
You can access the service logs located at <Installation_directory>\GE Digital\PlantApplicationsWebClient\ServiceLogs.
Access Enterprise (Linux) Web Client Logs
You can access the service logs located at <buildpath>\PlantApplicationsDocker/plantapps-web-docker/mnt/logs, where <buildpath> is the location that you specified in the silentinstaller.yml file during the Enterprise Web Client installation.
Set the size limit for Log files
By default, the maximum limit for Work Queue and Unit Operations log file size is set to 10MB. That is, if the receptive log file reaches 10MB in size, a new log file will be created. These files are retained for 14 days and the old files are archived. However, you can change these settings by modifying maxSize
and maxFiles
parameters in the operator-app-prod.yml and workqueue-app-prod.yml files. Follow below instructions to change these parameters in respective files:
- Based on your type of installation, perform one of the below:
- Enterprise Installation: In the directory <buildpath>/PlantApplicationsDocker/plantapps-web-docker/mnt/configfiles/operator-app/prod/<version>, access the operator-app-prod.yml file by using a text editor.
- Standard Installation: In the directory <Installation_directory>\config-repo\operator-app\prod\<version>, access the operator-app-prod.yml file by using a text editor.
- In the operator-app-prod.yml file, search and update the following loggerSettings with required values:
"maxSize": "10000000" "maxFiles": "14d"
For example:"maxSize": "5000000" "maxFiles": "7d"
Note: It is recommended to use the file size range from 5MB (5000000) to 20MB (20000000). - After making the modifications, save the file and then restart the operator- app.
- Based on your type of installation, perform one of the below:
- Enterprise Installation: In the directory <buildpath>/PlantApplicationsDocker/plantapps-web-docker/mnt/configfiles/workqueue-app/prod/<version>, access the workqueue-app-prod.yml file by using a text editor.
- Standard Installation: In the directory <Installation_directory>\config-repo\workqueue-app\prod\<version>, access the workqueue-app-prod.yml file by using a text editor.
- In the workqueue-app-prod.yml file, search and update the following loggerSettings with required values:
"maxSize": "10000000" "maxFiles": "14d"
For example:"maxSize": "5000000" "maxFiles": "7d"
Note: It is recommended to use the file size range from 5MB (5000000) to 20MB (20000000). - After making the modifications, save the file and then restart the work queue app service.
Log Levels
By default, the log files are populated with the warning messages only. However, to change what type of messages needs to be populated in the service log files, you can set the logging levels to debug more detail logs. The log levels helps you to identify and troubleshoot any errors that you may encounter. Below are the properties that you can set either in the portainer or in the common-service-prod.properties file.
- Based on your type of installation, perform one of the below:
- Enterprise Installation: In the directory <buildpath>/PlantApplicationsDocker/plantapps-web-docker/mnt/configfiles/common-service/prod/1.0.1/, access the common-service-prod.properties file by using a text editor. For example,
$sudo nano common-service-prod.properties
- Standard Installation: In the directory <Installation_directory>\config-repo\common-service\prod\1.0.1, access the common-service-prod.properties file by using a text editor.
- Enterprise Installation: In the directory <buildpath>/PlantApplicationsDocker/plantapps-web-docker/mnt/configfiles/common-service/prod/1.0.1/, access the common-service-prod.properties file by using a text editor. For example,
- In the common-service-prod.properties file, search and update the following properties as follows:
- logging.level.root=DEBUG
- logging.level.com.ge.bm=DEBUG
- logging.level.com.ge.digital=DEBUG
- For work-order-service, search and update the following properties as follows:
- Logging.LogLevel.Microsoft=Information
- Logging.LogLevel.Default=Information
- Logging.LogLevel.GE=Information
- Logging.LogLevel.Microsoft.EntityFrameworkCore=Information
- After making the modifications, save the file and then restart the specific service that you want to debug.