From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#30649: Cuirass service does not rotate its logs Date: Thu, 01 Mar 2018 17:35:09 +0100 Message-ID: <87371j69fm.fsf@gnu.org> References: <20180228145039.GA4589@jurong> <20180228174823.5fec105f@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erRBj-0006GF-A7 for bug-guix@gnu.org; Thu, 01 Mar 2018 11:36:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erRBd-0002Oc-HW for bug-guix@gnu.org; Thu, 01 Mar 2018 11:36:10 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erRBd-0002OU-D5 for bug-guix@gnu.org; Thu, 01 Mar 2018 11:36:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1erRBa-000601-3X for bug-guix@gnu.org; Thu, 01 Mar 2018 11:36:05 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20180228174823.5fec105f@scratchpost.org> (Danny Milosavljevic's message of "Wed, 28 Feb 2018 17:48:23 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 30649@debbugs.gnu.org Danny Milosavljevic skribis: > Hi Andreas, > > On Wed, 28 Feb 2018 15:50:39 +0100 > Andreas Enge wrote: > >> $ ll /var/log/c* >> -rw-r--r-- 1 root root 2003521 Feb 28 15:38 /var/log/cuirass.log >>=20 >> I am sure this 2MB file was about 14MB big this morning, and indeed >> any information dating from before this morning, when I rebooted the >> machine and thus restarted the service, has gone. >>=20 >> Notice also that there are no numbered files cuirass.log.1 etc.. > > The simplest and best way to fix that is to make cuirass use syslog. > > Not every program has to have its own private logging implementation, > log rotator, log filterting, log rate limiter, kitchen sink etc. > > src/cuirass/logging.scm is prepared somewhat for this possiblity[2], but = it > doesn't yet log to syslog. > > There are guile syslog bindings[1] and we should use them and then apply a > two-line patch to src/cuirass/logging.scm . Indeed. I wonder why we don=E2=80=99t have a Gamma package yet! Ludo=E2=80=99.