Diagnostic settings
In Pega Robot Studio, you can control the diagnostic log settings for your project's logging and logging levels during development and run time during debugging. The diagnostic logging in Robot Studio reads a category in the log and its adjacent log level in the settings file. You can use the Diagnostic settings in the Options window to enable logging off and on from within Robot Studio instead of editing log files directly and updating all aspects of the log settings without the need for opening multiple files. The diagnostic settings Options window is displayed after you select in the top menu of Robot Studio, as shown in the following figure:
To view the copy of the diagnostic settings in the PegaStudioConfig.json file and the Robot Runtime diagnostic settings in the PegaRuntimeConfig.xml, visit the following directory:
In the following image, click the + icons to learn more about each area of the Options window.
Updates to the log categories in the log file
With the Options window of the Diagnostic settings, you can set the categorized log messages and the logging level by severity. You can decide whether to enable or disable logging for each log category in the diagnostic settings files and customize it by selecting individual logging levels. The diagnostic messages use a severity set in the Log Categories section, and Info is the default severity level for each setting in the log file.
The following table details the different severity levels for logging:
| Severity level | Description |
|---|---|
|
Off |
This setting indicates that logging is not on for the specified log category. |
|
Error |
This setting records error messages, indicating that the application cannot perform as expected. The application is still running. |
|
Warn |
This setting records both error and warning messages. |
|
Info |
This setting records errors, warnings, and informational messages. It includes successful milestones of application execution, regardless of whether the application is working correctly, and provides an overview of what happened. |
|
Debug |
This setting records errors, warnings, informational messages, and verbose debugging output. As the most verbose logging setting, it is not a best practice for you to use in production environments. |
Check your knowledge with the following interaction:
This Topic is available in the following Module:
Want to help us improve this content?