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: Re: New (only?) extensible logging package for Emacs Date: Sun, 12 Mar 2023 20:13:50 +0100 Message-ID: <87zg8hpytt.fsf@gmail.com> References: <875yb7tnyd.fsf@gmail.com> <1624013056.316850.1678548472770@office.mailbox.org> 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="4146"; mail-complaints-to="usenet@ciao.gmane.io" To: Thomas Koch , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 13 04:20:41 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 1pbYjo-0000ri-JR for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Mar 2023 04:20:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbYjD-0000eT-RP; Sun, 12 Mar 2023 23:20:03 -0400 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 1pbR8n-0004Jl-LX for emacs-devel@gnu.org; Sun, 12 Mar 2023 15:13:57 -0400 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbR8m-0007NB-6G for emacs-devel@gnu.org; Sun, 12 Mar 2023 15:13:57 -0400 Original-Received: by mail-ed1-x52e.google.com with SMTP id cy23so40363404edb.12 for ; Sun, 12 Mar 2023 12:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678648432; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=w61tHzg6Bp/vaDkAUh1uWt9653Qm9TUR3OmKICwavNU=; b=nl7qs884ZQaMGVH8U0y+Zw3p097VZfjG/eDjyIM6XJ9w6wpiVAcMtNqEajLVsvN/d+ +whJQK/kYlkN9UOygYAyUfDyXE7jcHeRUaEhotWB5j8Evs2VwxiHqflXZV2oTLdB/VQ/ keBvs/KFVBetdbZutY1kup8mfSX8KM3nS66DyfdPzs5Rzlto3nrFfIxz3+DVbzosK0+A 11TFSCxX5PSMmnfRj5P6xccAhCDBh4QXT5i2zFXploPVJ40UqpjG7/0uIWytDHOF7lH3 Vhpv6IsM4ZNAcc4OwaxebQGY0JLMj4UDFQq/keWb/vCxeNq6ouAHlceOpCqCt0ZgW1pm 1h2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678648432; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=w61tHzg6Bp/vaDkAUh1uWt9653Qm9TUR3OmKICwavNU=; b=SO2hBWhCj/tohe/ESLTyZtPsC00eqhXGGO7ylmK6+3ttAe3sTHlN0quXrn2Ldvld/4 1ZW8NvOGonyD5a+Aj9l98IOg4WC+FpMvVfWd4P90E4Dp62pwR08s62bSuFtQB/SIZpJM WArppsMxQWiwehwjCreGktG/34/UyKlIyXc2GtrGrqZuAH8MO23mMfjDzcaxOFxmXwQM RUsZFPxw1lfrgtXuopakWdYZpu/TpiadWTknRVrQORCZqri0ets1rr8BmJAC+lKkpU4E HXlw1RIfu0HZkBzxn++kkR2F3ml+dUP2qsJmAIAiEPWjV6X5KJxYPTzln5qhwYut/KmZ 322A== X-Gm-Message-State: AO0yUKUaboEjHu6RE/RiVMUBmgagBNZSsSN4libS3QDxLVid64XiUyo4 mch85backjP+W9KN/MVjVNWPF71mehqXlbEG X-Google-Smtp-Source: AK7set9tBl9BN50v5357AZUlTQpO2sop3uI+3M0lFBrnF6uykamduYb0vCIApsg2uNgiHy7Q+NPPVA== X-Received: by 2002:a17:907:da9:b0:924:c090:806b with SMTP id go41-20020a1709070da900b00924c090806bmr3655425ejc.22.1678648432003; Sun, 12 Mar 2023 12:13:52 -0700 (PDT) Original-Received: from parmenides (ip-89-177-55-133.bb.vodafone.cz. [89.177.55.133]) by smtp.gmail.com with ESMTPSA id g15-20020a1709064e4f00b0092a3b199db8sm128344ejw.186.2023.03.12.12.13.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 12:13:51 -0700 (PDT) In-Reply-To: <1624013056.316850.1678548472770@office.mailbox.org> Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=matus.goljer@gmail.com; helo=mail-ed1-x52e.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: Sun, 12 Mar 2023 23:20:02 -0400 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:304383 Archived-At: > Such a logging library might also be helpful in interactive use when debu= gging problems that cause Emacs to freeze or (god forbid) to segfault. In t= hat case I could still find log messages outside of Emacs. This is a good point and in fact I just used it in this way today. I'm debugging some async code (via emacs-async) package and as you might imagine, it's rather complicated. Logging to files made it much simpler, and I only had to add one line (the file appender) > In my case I'd love to feed logs into journald. What unit would it log to though? Or can journald also ingest logs for non-unit source? Since I imagine not many people run Emacs as a systemd service. I'm not very knowledgable about this stuff :grin: Ihor also mentioned appender to log into *warnings*... so there's definitely a lot of potential destinations to be handled out of the box. --=20 Best regards, Mat=C3=BA=C5=A1 Goljer