From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id ONiUFFGywWUqDQAA62LTzQ:P1 (envelope-from ) for ; Tue, 06 Feb 2024 05:15:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id ONiUFFGywWUqDQAA62LTzQ (envelope-from ) for ; Tue, 06 Feb 2024 05:15:13 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ANDt2L4Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707192912; a=rsa-sha256; cv=none; b=XRh37BAJ1wVK3HRVrp88vi5Tei6C13BZltLAeRNvp+Wxg7xjDhZ3R8x5wFmW7OW1J2SXws wfPHaVluiZEUOLFlUkzjfBbD5NI4N/4T/o351ERgpzkjzlPEff5m6GgyKrx7r+LZK1xHns D4n6XDXOJmVDnH4SbmddTjl+pJraU4sPkSgqi9hkAKP7Y5GKNY86833jxD5eIA3QnMiSxV 2Cmr+HesfvHIgs7g6Jv8Up/EMwalAmqWa39hL4Ua1ItoZDkguj2CfP6Jzye6uYy712F1JD oAuJG0zCTZIkYqkYVVH2h8dAbN5+Tr+YJE3cDgYJjZfDmfD36QfZWAS0oJnldQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ANDt2L4Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707192912; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=S4Lge30t8oK7p3S8x7W+mLc1DL2i2Pwogjf5ZIlotp8=; b=eQACMn/CruARRi2I7p/xKqHyCH0eiWwaFAd1kLsJmL3QnsT/q4GxB3Bi/aL3o6371aJ/vw 1BdZWCDBMoosoaIy8G5808a4wWOpNv+/N/NVPJk+9650TRfvPzYJPaTc0hwlKIvPe8i2tg DuwPxTVRJB+/1pFwzUPW3MKH7lvpBcDEeHnsGkCOZglpBXhdO7kPDA5ZGmzrhVD2D+0O7O 0BnUiShrAkMFhttkmHttMk8fCGz5hbkWGs9MCIGJLVs2Hz2xUdTGHCwfJtRJ4NU/qcMjEa Vo1M762Rl9LtgSULVPs5Q1uXPp/s+irb0bndXt6u1hswvwXR3oTy6nzoBkR+Tw== 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 CA02FD9AE for ; Tue, 6 Feb 2024 05:15:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rXCrK-0004Hh-2N; Mon, 05 Feb 2024 23:14:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXCrJ-0004HY-DT for guix-patches@gnu.org; Mon, 05 Feb 2024 23:14:57 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXCrI-00011h-Ew; Mon, 05 Feb 2024 23:14:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rXCrN-00069k-Up; Mon, 05 Feb 2024 23:15:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68946] [RFC PATCH 0/1] Add logging capability to Guix Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Tue, 06 Feb 2024 04:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68946@debbugs.gnu.org Cc: Maxim Cournoyer , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.170719287223606 (code B ref -1); Tue, 06 Feb 2024 04:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Feb 2024 04:14:32 +0000 Received: from localhost ([127.0.0.1]:53048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXCqu-00068g-GZ for submit@debbugs.gnu.org; Mon, 05 Feb 2024 23:14:32 -0500 Received: from lists.gnu.org ([2001:470:142::17]:34064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rXCqr-00068S-Rn for submit@debbugs.gnu.org; Mon, 05 Feb 2024 23:14:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rXCqZ-0004Dl-H8 for guix-patches@gnu.org; Mon, 05 Feb 2024 23:14:11 -0500 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rXCqX-0000z0-TJ for guix-patches@gnu.org; Mon, 05 Feb 2024 23:14:11 -0500 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-783d4b3ad96so330473585a.3 for ; Mon, 05 Feb 2024 20:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707192848; x=1707797648; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=S4Lge30t8oK7p3S8x7W+mLc1DL2i2Pwogjf5ZIlotp8=; b=ANDt2L4YPXVG2NLr4vPSBHPYKmDw0UYZENa5vD4XItBJ9Mt2PPxzGCgBko+/Z+i0Or ZicPBC/Z9HYKdGyBjxDex6o95Zw5btJOUD7VWRCQyI7Muabf6NowNMLePWXHymZ96V0s RxQtjPEAaHliUu44pS1hfbNPIuFOH4BqzBaT1ALpGKu3156G8oPMzigp/TLgQ6B8SyVt Fx2a8epUZ7XG3J6AroPlY2UZ0wlAkyfFcn4TfoH448nmnAydpUqInkZ0edsjZl0E15Ng bGPSlVZaa1in1sYXPTtWo89n1UoWqVp2BFj6cOWJ1m+90jESJuEHqNUuFtrlUVO9D1hR lUXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707192848; x=1707797648; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=S4Lge30t8oK7p3S8x7W+mLc1DL2i2Pwogjf5ZIlotp8=; b=PBM5fVhLIHkyshD3O4ePyca/ZW95uVFbOqvGTQkz64iqdkt9z+mbvJoVl/L3L9tn4d jf9cbM48G9wRfY9onGu4scdAsWj5R4Vcq87ffWp6RrLptyazTb5+9yaoDG9pzpyUWJSf edOTQSLLhsahXYHwuoi9HrClrmnQg6+KsJBCcWPzAROqobVTLByN+qintYUcZ2z6RdWt AeW9yTYqjMvpEKkztMctVAN8atrHSn4W/UGdC6amcqG0UiwNKxnQjBVWMDfo1ATmXP1K zhsTTN+ykWcmxoUsz/lMVaolvN+xzE1L71YnOaIow+PU9SRvn829gd7HEMCRyLtfxFNJ zReQ== X-Gm-Message-State: AOJu0YzorDcqI6jCBQguzpWsvfDun2dEV9CqN7E+bmqqET2N7Vqzw+C8 YK3vsODF/Z4vwGoaKdXVm3RkPAe8fpCr8Qbyen5itztPgXGrDUYmD8uKbG4x X-Google-Smtp-Source: AGHT+IHvETQvzCRDSkbbY6P+cQpYTukQm+MYqrcN98MVHy8Aqm/2WylpnN0T1hQOgmBeHgoMKOMqRA== X-Received: by 2002:ad4:5943:0:b0:68c:3de0:8a with SMTP id eo3-20020ad45943000000b0068c3de0008amr1646244qvb.16.1707192848343; Mon, 05 Feb 2024 20:14:08 -0800 (PST) Received: from localhost.localdomain (dsl-10-130-152.b2b2c.ca. [72.10.130.152]) by smtp.gmail.com with ESMTPSA id ez4-20020ad45904000000b0068ca41d6c26sm644179qvb.78.2024.02.05.20.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 20:14:07 -0800 (PST) From: Maxim Cournoyer Date: Mon, 5 Feb 2024 23:12:00 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::735; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x735.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -3.57 X-Migadu-Queue-Id: CA02FD9AE X-Migadu-Spam-Score: -3.57 X-TUID: bIoAQMJm4CCp This adds the ability to simply log messages during execution, whose level can be selected via a new '--log-level' option. It relies on pending Guile features (SRFI 209 enums) [0] as well as some modifications to Guile-Lib's logging library so that it can support source properties [1]. To test, I symlink the 'guile' binary at the root of the Guix checkout to my ~/src/guile/meta/guile built binary, and I build Guix with 'make GUILE=./guile', in an environment containing the modified guile-lib: guix shell --pure -D guix --with-source=guile-lib=/home/maxim/src/guile-lib Here's some dummy output just to show what the default format looks like: 2024-02-06 03:38:44 guix/derivations.scm:272:16: DEBUG: adding input #< drv: # /gnu/store/8fsrfzp53azpsb5n3rbh24n1bcrimzpj-gcc-core-4.6.4.tar.gz 7f60e5ea7af0> sub-derivations: ("out")> to list 2024-02-06 03:38:44 guix/derivations.scm:272:16: DEBUG: adding input #< drv: # /gnu/store/qbj186qvw9312ki8qqmxc5hx6izwp1km-gcc-g++-4.6.4.tar.gz 7f60e5ea7a00> sub-derivations: ("out")> to list [0] https://lists.gnu.org/archive/html/guile-devel/2023-12/msg00087.html [1] https://lists.gnu.org/archive/html/guile-devel/2024-02/msg00000.html Maxim Cournoyer (1): guix: Add logging module. Makefile.am | 5 ++- configure.ac | 6 +-- guix/logging.scm | 98 ++++++++++++++++++++++++++++++++++++++++++++++++ guix/ui.scm | 17 ++++++++- 4 files changed, 120 insertions(+), 6 deletions(-) create mode 100644 guix/logging.scm base-commit: c76004c574acc3291e8d2526fe534719473a87ff -- 2.41.0