From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cNXqLkDqlGEHbQEAgWs5BA (envelope-from ) for ; Wed, 17 Nov 2021 12:40:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gAXDKkDqlGGULwAAB5/wlQ (envelope-from ) for ; Wed, 17 Nov 2021 11:40:48 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6F34112D9B for ; Wed, 17 Nov 2021 12:40:48 +0100 (CET) Received: from localhost ([::1]:60632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnJJ1-0005cR-Jn for larch@yhetil.org; Wed, 17 Nov 2021 06:40:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnJIT-0005c0-5j for guix-devel@gnu.org; Wed, 17 Nov 2021 06:40:13 -0500 Received: from [2001:470:142:3::e] (port=56402 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnJIS-0003i4-S9; Wed, 17 Nov 2021 06:40:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=x5SuCPjcQ25t1fFWyy5sBcrVeL6WMdvhiwx4Gh+rVcE=; b=TjmVlWsuYy3MBMyBWKde +39owV9BlmvcIsKW2gIx5UNxj3p7gk5M8v8/7GLUie4Q1CgntR7EZY4KPmABUIrnPTdwzfCOPF1zg +hyAMppXQdsTeHH35coVvNU9d/4py92GciLaaJLvDdl8bCAEb8wuDkosevar7CTbpD/FgsYaHMiBJ uSiT3pRuH6iuxSTzXSn6EzcZuuqe0fC71hMUduWe9xnP0DemREv9LYOfE8yb3CKfrFfJJO85+ecVP NTYpOl8DJgXY3TFLzxprEvP2SIZyNkSytB79AUjTmbcSf4n9c5OHMuoYOrhfq6vRA/lp3V82oL+Qu 87O77l0GBIPPCA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:57987 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnJIS-0001oH-BM; Wed, 17 Nov 2021 06:40:12 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Katherine Cox-Buday Subject: Re: Guix services, logging, and log rotation References: <87bl2jwfih.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Brumaire an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 17 Nov 2021 12:40:09 +0100 In-Reply-To: <87bl2jwfih.fsf@gmail.com> (Katherine Cox-Buday's message of "Tue, 16 Nov 2021 22:52:06 -0600") Message-ID: <87tugbvwme.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix Devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637149248; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=x5SuCPjcQ25t1fFWyy5sBcrVeL6WMdvhiwx4Gh+rVcE=; b=rCsuUvTd8eTdm6ye/MtPqEWNxK4MZrrR/PopqSQTMjHQsSWl29gcgDtWcH6RRDbTk+r0hh RCDJaUa3N+2nKrNJji0yPj0sW4cs75EVsheUba74dUVpJm9zxBBs2NFFLcyjk/ImENRG/+ 8POgUoILsCVBEQXsQdOHkgStK2rwYWlO25+ofkH5ENWetxgZBUiVcsgi7tol34SM7VZC0b 15j3+pAGkQQAszzrTY3TkCAD7gNwt2y9l+WGr9UjVB4nw68jcOQJjYhSAuwrXcpF8SRxku sHoD1ZNWeTEmj73b5HMNLPb1KBzuZ9/3WvxAEnRJmOVet1VtSWor5LrWbl99jw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637149248; a=rsa-sha256; cv=none; b=TTMlszWfJ4IKgDT/pWVxGvRP33BUNCBMsVGkM8cA2vkx4U7/l+ApcBbIyI1dtYN6txMMxO gBDRdK2bFNpPy/1ts1nuMgljQnEw+cWCvKi5de5D9MgNAh7FSK3zUza610w5dYcfE9y3jA TbuN1byitSzcktx48FJi6ga2+kkwSKQHPPgwvF+bWGS5EEDkwjWaBzf8tAQOs1ww74/2Wx t+8Zb2vK3Wst9ycKhzNBWJ4O7j45B53kvaMoR0ui+U7+RZOCPTyNYMNvrRA839XiNpyRLJ /dTbx17UhBUNSPpbH5c+zXaR7izVo6gbDjOVuwHdpJYoR0n9AQdm8Ishnz50yw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=TjmVlWsu; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=TjmVlWsu; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6F34112D9B X-Spam-Score: -4.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2+AtQ36yAFKw Hi, Katherine Cox-Buday skribis: > In the manual, SS10.8.3, it says: > >> (usually, services that produce log files already take care of that) > > I found an excellent example in =3Dhpcguix-web-service-type=3D. It looks = like you can achieve this by extending the =3Drottlog-service-type=3D? Yes (info "(guix) Log Rotation"). > However, I noticed not all services allow users to specify where log file= s go, or setup log rotation. E.g.: > > #+BEGIN_SRC scheme > (define syncthing-service-type > (service-type (name 'syncthing) > (extensions (list (service-extension shepherd-root-servic= e-type > syncthing-shepherd-s= ervice))) > (description > "Run @uref{https://github.com/syncthing/syncthing, Synct= hing} > decentralized continuous file system synchronization."))) > #+END_SRC > > Are these bugs? > > Why don't all services allow you to specify where logs go? I think these are omissions rather than bugs. But really, each daemon has its own way of dealing with logging: some write to syslog (in which case we don=E2=80=99t need to add a new log rotation rule), some just write= to stderr (like hpcguix-web, and in this case you need to pass #:log-file to =E2=80=98make-forkexec-constructor=E2=80=99), some write to custom log f= iles that may or may not be configurable. I think it=E2=80=99s nice in general for services to provide log rotation entries, especially when they=E2=80=99re likely to produce verbose logs. HTH, Ludo=E2=80=99.