Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Log components and methods

Updated on October 19, 2022

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:


DiagnosticsLogUse this component to control logging to the PegaRobotRuntime.log file.


MethodDescriptionParametersResult type
LogPrimary method that writes the message to the Robot Runtime log file. String message, log levelString
LogErrorSets 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 messageString
LogInfoSets 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 messageString
LogVerboseSets the log level to Verbose, which records error, warning, informational messages, and verbose debugging output.

Note: This option generates a large number of messages and is not recommended when used with multiple trace source selections.

String messageString
LogWarningSets the log level to Warning, which records both error and warning messages.String messageString

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us