| Message ID | cover.1707192720.git.maxim.cournoyer@gmail.com |
|---|---|
| Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 049B827BBEB; Tue, 6 Feb 2024 04:15:14 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D5AB427BBEA for <patchwork@mira.cbaines.net>; Tue, 6 Feb 2024 04:15:12 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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 <Debian-debbugs@debbugs.gnu.org>) 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 <maxim.cournoyer@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> 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: <handler.68946.B.170719287223606@debbugs.gnu.org> 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 <maxim.cournoyer@gmail.com>, Christopher Baines <guix@cbaines.net>, Josselin Poiret <dev@jpoiret.xyz>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Mathieu Othacehe <othacehe@gnu.org>, Ricardo Wurmus <rekado@elephly.net>, Simon Tournier <zimon.toutoune@gmail.com>, Tobias Geerinckx-Rice <me@tobias.gr> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Christopher Baines <guix@cbaines.net>, Josselin Poiret <dev@jpoiret.xyz>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Mathieu Othacehe <othacehe@gnu.org>, Ricardo Wurmus <rekado@elephly.net>, Simon Tournier <zimon.toutoune@gmail.com>, Tobias Geerinckx-Rice <me@tobias.gr> 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 <debbugs-submit-bounces@debbugs.gnu.org>) 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 <maxim.cournoyer@gmail.com>) 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 <maxim.cournoyer@gmail.com>) 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 <maxim.cournoyer@gmail.com>) 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 <guix-patches@gnu.org>; 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 <maxim.cournoyer@gmail.com> Date: Mon, 5 Feb 2024 23:12:00 -0500 Message-ID: <cover.1707192720.git.maxim.cournoyer@gmail.com> 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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
| Series |
Add logging capability to Guix
|
|
Message
Maxim Cournoyer
Feb. 6, 2024, 4:12 a.m. UTC
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 #<<derivation-input> drv: #<derivation /gnu/store/2ll0ig7jn3w7rqsyfjl358r2q9lga15a-gcc-core-4.6.4.tar.gz.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 #<<derivation-input> drv: #<derivation /gnu/store/5hmjcad7k2z2d8rc38p2jcsh88dvpqr6-gcc-g++-4.6.4.tar.gz.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
Comments
Hi, Giving this a little nudge. I think the ball was with you Maxim to send a patch adding some initial logging to see if it becomes useful. Still happy to do so? Steve / Futurile
Hi Steve, Steve George <steve@futurile.net> writes: > Hi, > > Giving this a little nudge. I think the ball was with you Maxim to > send a patch adding some initial logging to see if it becomes > useful. Still happy to do so? Thanks for returning the ball! I've never heard back from patches sent to Guile which I relied on in my original implementation (I had used SRFI-209 enums to implement the log level) [0]. I guess I should try again now that it's hosted on Codeberg. [0] https://www.mail-archive.com/guile-devel%40gnu.org/msg17167.html
Hi Maxim, On Mon, 28 Jul 2025 at 20:31, Maxim Cournoyer <maxim@guixotic.coop> wrote: > Thanks for returning the ball! I've never heard back from patches sent > to Guile which I relied on in my original implementation (I had used > SRFI-209 enums to implement the log level) [0]. I guess I should try > again now that it's hosted on Codeberg. > > [0] https://www.mail-archive.com/guile-devel%40gnu.org/msg17167.html Feel free to report here how it’s going. :-) Well, I think it could be very nice to add logging features to Guix. Because when dealing with bug reports, the loop to get relevant information is more than often annoying, both end. :-) Cheers, simon