Question
Pega Robotics Studio 8: generational logging
Inside the default log directory (appdata) it appears that Studio, Runtime and a few other logs are rotated at least a few generations (five in the diagram):
However, looking at the contents of the files, it doesn't appear to rotate daily and the six files above cover approx three days.
Is it possible to set Runtime to rotate the logs at a sensible time (preferably daily) and a specified number of times (preferably 10)?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
There are two types of logs available for Runtime and for Studio. These are controlled by the RuntimeConfig.xml and the StudioConfig.xml settings. For instruction on configuring this, search the online help for Runtime Configuration. The two types are:
File Publisher produces a single log for the life of the Runtime/Studio session. You can determine the number of files to keep. A log will roll off each time you start the Runtime/Studio. These log files can get large when the logging is set to Verbose. It is not recommended to leave this running in production, but is essential for debugging while in development and QA.
Log4Net Publisher produces logs that look similar to the File Publisher. Log4Net is a rolling log system which is useful when you want to keep logging running all the time. You can specify the maximum log file size and the number of logs to keep.
It is not necessary to have both publishers running at the same time. The both produce the same information. Choose the method that suits your need.