Skip to main content


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

LogController methods

Updated on October 19, 2022

Use the LogController methods to manage logging to the PegaRobotRuntime.log file.

Controlling logging is a critical part of debugging and testing. For example, you might disable logging when a sensitive operation is being performed, for security reasons. You might disable logging if you encounter an issue with a project, to avoid extraneous log messages.

The following table describes the LogController methods available:

Methods

MethodDescription
GetLogNamesReturns a list of configured log4net loggers, so you can modify settings as necessary.
LoggingOnEnables writing to the event log.
LoggingOffDisables writing to the event log.
RestoreLoggingAfter using a LoggingOn or LoggingOff method, use RestoreLogging to return logging to its original state.

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.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us