Log components and methods
Use the log component and methods to add messages to the
PegaRobotRuntime.log
file, and to specify the log level.
Adding custom log messages can make debugging easier. You can search on a specified process or condition in the log file.
Log levels are defined in the Methods table below. Each log level includes messages captured by the previous level. For example, selecting Verbose includes Info, Warning, Error, and Critical messages. If you choose Critical, Error, or Warning, the logs will be blank under normal operating conditions.
The following tables list the available components and methods for logs:
Components
Component | Description |
DiagnosticsLog | Use this component to control logging to the PegaRobotRuntime.log file. |
Methods
Method | Description | Parameters | Result type |
Log | Primary method that writes the message to the Robot Runtime log file. | String message, log level | String |
LogError | Sets the log level to Error, which records error messages indicating that the application was not able to perform a task as expected. The application is, however, still running. | String message | String |
LogInfo | Sets the log level to Info, which records error, warning, and informational messages. It includes successful milestones of application execution, regardless of whether the application is working properly, and provides an overview of what happened. | String message | String |
LogVerbose | Sets the log level to Verbose, which
records error, warning, informational messages, and verbose
debugging output. | String message | String |
LogWarning | Sets the log level to Warning, which records both error and warning messages. | String message | String |
Previous topic LogController methods Next topic Messages methods and components