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