Re: [pgAdmin][Patch] - Feature #6395 - Feature request: Log Rotation
От | Akshay Joshi |
---|---|
Тема | Re: [pgAdmin][Patch] - Feature #6395 - Feature request: Log Rotation |
Дата | |
Msg-id | CANxoLDcgwrETt6B0PuLLTshr8CyPqFegVL3OOP7xOfb1bXFYPg@mail.gmail.com обсуждение исходный текст |
Ответ на | [pgAdmin][Patch] - Feature #6395 - Feature request: Log Rotation (Yogesh Mahajan <yogesh.mahajan@enterprisedb.com>) |
Ответы |
Re: [pgAdmin][Patch] - Feature #6395 - Feature request: Log Rotation
|
Список | pgadmin-hackers |
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.
- 'enhanced_log_rotation.py' file line no 23 should be "max_bytes = max_bytes * 1024 * 1024" instead of "max_bytes = max_bytes * 1000000"
On Tue, May 25, 2021 at 10:54 AM Yogesh Mahajan <yogesh.mahajan@enterprisedb.com> wrote:
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 retainThanks,Yogesh MahajanEnterpriseDB
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Principal Software Architect
EDB PostgresMobile: +91 976-788-8246
В списке pgadmin-hackers по дате отправления: