Re: [pgAdmin][Patch] - Feature #6395 - Feature request: Log Rotation

2021-05-25 Thread Akshay Joshi
Thanks, patch applied. On Tue, May 25, 2021 at 4:59 PM Yogesh Mahajan < yogesh.maha...@enterprisedb.com> wrote: > Hello, > > Please find the attached file incorporated with the above comments except > the 2nd one. > > Thanks, > Yogesh Mahajan > EnterpriseDB > > > On Tue, May 25, 2021 at 1:09 PM A

Re: [pgAdmin][Patch] - Feature #6395 - Feature request: Log Rotation

2021-05-25 Thread Yogesh Mahajan
Hello, Please find the attached file incorporated with the above comments except the 2nd one. Thanks, Yogesh Mahajan EnterpriseDB On Tue, May 25, 2021 at 1:09 PM Akshay Joshi wrote: > Hi Yogesh > > Following are the review comments: > >- LOG_ROTATION_MAX_LOGS should be renamed to LOG_ROTA

Re: [pgAdmin][Patch] - Feature #6395 - Feature request: Log Rotation

2021-05-25 Thread Akshay Joshi
Hi Yogesh Following are the review comments: - LOG_ROTATION_MAX_LOGS should be renamed to LOG_ROTATION_MAX_LOG_FILES - Rollover file name should have '.log' extension at the end instead of " pgadmin4.log.2021-05-25_12-17-43" - Add comments in the 'enhanced_log_rotation.py' file. -

[pgAdmin][Patch] - Feature #6395 - Feature request: Log Rotation

2021-05-24 Thread Yogesh Mahajan
Hi, Please find the attached patch which rotates the pgadmin log file with context to the parameters specified in the config file. # Log rotation setting LOG_ROTATION_SIZE = 10 # In MBs LOG_ROTATION_AGE = 1440 # In minutes LOG_ROTATION_MAX_LOGS = 90 # Maximum number of backups to retain Than