From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?TWF0w7rFoQ==?= Goljer Newsgroups: gmane.emacs.devel Subject: New (only?) extensible logging package for Emacs Date: Sat, 11 Mar 2023 14:30:34 +0100 Message-ID: <875yb7tnyd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16922"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 11 14:45:15 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pazX9-0004AM-HF for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Mar 2023 14:45:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pazWo-00080W-Si; Sat, 11 Mar 2023 08:44:54 -0500 Original-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 1pazJ3-0000uw-FY for emacs-devel@gnu.org; Sat, 11 Mar 2023 08:30:43 -0500 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pazJ1-0006qV-Do for emacs-devel@gnu.org; Sat, 11 Mar 2023 08:30:41 -0500 Original-Received: by mail-ed1-x533.google.com with SMTP id o12so31493518edb.9 for ; Sat, 11 Mar 2023 05:30:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678541436; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=a8fZlkDlGBZaXKMHFmy3fnW5FgNNn8nXEmUiHRkKtMs=; b=G33LQf8Tcx8KxwCe/c6R/ixnqZRqbncLwTVx7UfedPKhuk5xTExdKNoXRXI/qIXvNP cFrmz4MAl+0cbK8oZxAf2Bj0IdFbNZlu1S5cpIOaPhpNyx7GBrsaIIDrLO1NDCfxg4nt ij3RrrlEdEQx8YeIn2lOFyZAIHt0GxFEaNYy9PRveLDReuJwNbzbP2tnwZDMqHsHcHiy XYgjh5xEFjXjfftnRyT0hSEfadqm8ubuYPYiF8rFon9twqew8DEhRluwsV/+b54SPjE2 YjawO5orar2Ln3mDK9skQOek+mMaNMn3MerxV3k4ySEcswNGsRve2DXgpfQFzjlhFBEr cpsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678541436; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a8fZlkDlGBZaXKMHFmy3fnW5FgNNn8nXEmUiHRkKtMs=; b=iiCz99bH8WeR1Wu7HgY29IExYRfP3d9sIzJz+AI11vyGzo2BP/Wzf83KThF174Pzzv 0mghJz/z65CqG0wlRA/+FpA8okzXnckyrjAaLbr55ujEqenVC7A0cuRkpZ3YF8yEVAUC VOpEqTD0nZq2l+8rz+zHhV+ESRz8jp8uJCXRIpYmfEPpP3pOKnC3cfyTIEKMw/B4Eza/ pmA5MiO9NRsSqYDaw8n7xhotGgz3e0j54USEeQNLrvN0gfoqFTNgY1qvHx5gSq0zYh/V 0lJrjxQ9jxTKC/HvtG6jvg4iLbXheeBP3WMLck2KhoeL1AIX5rMhjnir2e59hObYR7Tv RbLQ== X-Gm-Message-State: AO0yUKV8aIrl+jZCCDg1MbV3n1/oyhLv5upX+cUJXvJmgjaC1WM/JtbR tjtjq0ZtT8JScR9Iho9ts1nffTUncFo= X-Google-Smtp-Source: AK7set8Xr0uQ28sjcgSVNhM/ubHevvb7kM+o7x4AoV1rm4/NscwGBeaI+WJcmYK5sYHDqcJkuLYXRw== X-Received: by 2002:a17:906:58c3:b0:878:625c:c8ff with SMTP id e3-20020a17090658c300b00878625cc8ffmr36978626ejs.54.1678541436429; Sat, 11 Mar 2023 05:30:36 -0800 (PST) Original-Received: from parmenides (ip-89-177-55-133.bb.vodafone.cz. [89.177.55.133]) by smtp.gmail.com with ESMTPSA id by26-20020a170906a2da00b00923221f4062sm243678ejb.112.2023.03.11.05.30.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 05:30:35 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=matus.goljer@gmail.com; helo=mail-ed1-x533.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 11 Mar 2023 08:44:53 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304312 Archived-At: Hello. Recently a need came to have an extensible and configurable package for logging in Emacs. As far as I know there's no such thing in Emacs itself or the broader community. Python has logging and Java has log4j, but there's nothing of the sort for Emacs. While Emacs is mostly interactive, there are many Elisp tools out there working as batch tools (linters, language server, package management tools...) that would benefit from a better logging experience. But even packages running inside Emacs could use a logging framework where users can turn debugging on and off while investigating issues. Currently many popular packages include `PACKAGE-debug` switches and their own implementation of "selective logging". I've created a package `lgr` currently available on github https://github.com/Fuco1/emacs-lgr with the intention of including it in Emacs proper (therefore keeping external dependencies out of it). This is a request for feedback I guess :) --=20 Best regards, Mat=C3=BA=C5=A1 Goljer