LogController methods
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
Method | Description |
GetLogNames | Returns a list of configured log4net loggers, so you can modify settings as necessary. |
LoggingOn | Enables writing to the event log. |
LoggingOff | Disables writing to the event log. |
RestoreLogging | After using a LoggingOn or LoggingOff method, use RestoreLogging to return logging to its original state. |
Previous topic Advanced utility components Next topic Log components and methods