Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYnXy-0001TL-Bj for pgadmin-hackers@arkaria.postgresql.org; Tue, 20 Apr 2021 10:23:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lYnXx-0005gp-4U for pgadmin-hackers@arkaria.postgresql.org; Tue, 20 Apr 2021 10:23:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYnXw-0005dd-Pc for pgadmin-hackers@lists.postgresql.org; Tue, 20 Apr 2021 10:23:56 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lYnXs-0007a5-CA for pgadmin-hackers@lists.postgresql.org; Tue, 20 Apr 2021 10:23:56 +0000 Received: by mail-ed1-x52b.google.com with SMTP id e7so44286941edu.10 for ; Tue, 20 Apr 2021 03:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hR9M8ov2tEIKq/2ITtdhvqc3YX80YvrJPqpkXj3WbuM=; b=im0nYhUnFRmk4g9xy0/cRj7MOtMW+g5mo6WXpuXqFmzGFXSjIWFx7XiulNiNGAIsh3 VgJbyLAiBLXWEBkBwbeK4wjryASXow6P1SXc55ohnp1/X5bU7IA0NxMB5rul15/J4PsC XBLYGelU3UOHKjlgOJI0vCsncGt+1KOOisiyBMm/sxUgsnTT5aTY4Y4EaMxOZRhNdGf4 x3fVYod9TOTS4dHqYCesfcAn9ifGPElXjiz9Xnw/wqsiVxJhrwdGoA2C2Fkz6USuQ2Rn yurDvwS9Kc3NCJ9+z6D/fqZjkpIboswLZyfKXpq8Mq20yLkRSLg41sxDLgVyLFAHEUVS NNVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hR9M8ov2tEIKq/2ITtdhvqc3YX80YvrJPqpkXj3WbuM=; b=lLZ9a4EegKSlNweYW8+yjeBTWFnbm99xTeZOrRXGm68xS6TNruvnQUCqDeypTroYCf 6SY6hTzTu8hY8kBhHlfAK28YIpTwwyca0v64qtiSNDVpGjOW08gvw8Xug2btnwUXMuSw VfWkzu+hzBAh1EZnqc34/D55AS8/rKbiamPudhED9USyKBwo5N4S1tZ6xSNfhQtUyqox keRJOB/Tzqu9fZ5csj+i61IDqL3q1Xl6dou8t6SnbfxCrDv8oODsO72cC0ftOrurzDQK UzXxVwv3p+EafSxq5uK3+YGDlPNOF1hbyhgs3pkbhB2mBeRv49CqZkKL35Kh6zvSdgkK Hwgg== X-Gm-Message-State: AOAM533hD6WMWf5HPuD46f2XRyTSq24VUwVK0yTAoqluxmUvyaV9g3iD ZCktY1hDeL5JNWqqJ/L9ti8FVrDz0YgQi7lhQ3544FUIOylWTg== X-Google-Smtp-Source: ABdhPJwyQfqI3bA2FmYqVpPNego6ZFiRWkR3tc0WnMl1vzDCm6e9HSJw3PaY/4ZjQgQ7VALnBmePK+VVB/vp+YLt+fw= X-Received: by 2002:a05:6402:19a:: with SMTP id r26mr31089435edv.44.1618914231333; Tue, 20 Apr 2021 03:23:51 -0700 (PDT) MIME-Version: 1.0 References: <24e2e9bd9a5be7cca8ac39344ed53e4a@coginternet.net> In-Reply-To: <24e2e9bd9a5be7cca8ac39344ed53e4a@coginternet.net> From: Dave Page Date: Tue, 20 Apr 2021 11:23:39 +0100 Message-ID: Subject: Re: Feature #6395 - Basic Log Rotation To: Thomas Greenwood Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000ae460b05c064d7e3" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000ae460b05c064d7e3 Content-Type: text/plain; charset="UTF-8" Hi On Mon, Apr 19, 2021 at 5:17 PM Thomas Greenwood wrote: > Hi, > > I've opened feature issue #6395 to enable log rotation in pgAdmin4 v5. > > Please find the attached basic patch as a starter for 10. It's the same > patch attached to the feature issue. > Nice! My only suggestions would be that the config options be added to config.py, with default values of zero for log size, and say, 5 for the number of backups (should that be 'archives'?), and that we test to see if the log size is > 0 before enabling rotation. The reason for that is that we keep all config options in config.py to ensure it's self-documenting. -- Dave Page Blog: https://pgsnake.blogspot.com Twitter: @pgsnake EDB: https://www.enterprisedb.com --000000000000ae460b05c064d7e3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

= --
--000000000000ae460b05c064d7e3--