Hi,
I would like to know whether it is possible to configure the retention settings for the GQI Extension logs located in:
C:\ProgramData\Skyline Communications\DataMiner GQI\Logs\Extensions
Specifically:
- Can we configure how many log files per extension are kept in this folder?
- Can we configure the maximum size of the log files before deletion occurs?
We are currently running several debugging and validation tests that generate large amounts of log data. As a result, the log rotation happens quite quickly, and logs generated in the morning are often no longer available when we investigate issues later in the afternoon.
For our use case, we would need either:
- A higher number of retained log files, or
- A larger maximum log size before rotation.
Thanks!
Hi Rafael,
It is currently not yet possible to configure the file size limit or the retained file count for GQI extension loggers.
These default to 5MB per log file and 2 log files per extension library.
Unfortunately, we cannot simply expose the underlying log framework settings like we did for the general GQI logging because some logger properties need to be defined in code and we cannot mix those with app setting configuration.
In order to support this, we will need to define our own dedicated app settings.
Feel free to create a new software feature request for us.
In the meantime, I think these are your options:
- Try to reduce the number of logs or the size of the individual logged messages if possible. In some cases, multiple logs may be combined into a single aggregated log? Especially if used in tight loops. It depends on the purpose of each individual log statement of course.
- Use an external logging framework, as a last resort.
You can initialize and use your own logger independent from GQI.
If you make sure there are no file name collisions, you can add them to the same folder and those files will probably also be picked up by the log collector.