From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: New (only?) extensible logging package for Emacs Date: Mon, 13 Mar 2023 16:39:59 +0200 Message-ID: <83edpsu340.fsf@gnu.org> References: <875yb7tnyd.fsf@gmail.com> <87bkkyuqkb.fsf@localhost> <87pm9cpyps.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20336"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, emacs-devel@gnu.org To: =?utf-8?B?TWF0w7rFoQ==?= Goljer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 13 15:41:01 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 1pbjMD-00054r-BG for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Mar 2023 15:41:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbjLU-0008Pa-4R; Mon, 13 Mar 2023 10:40:16 -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 1pbjLS-0008PC-6G for emacs-devel@gnu.org; Mon, 13 Mar 2023 10:40:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbjLO-0003Ay-3y; Mon, 13 Mar 2023 10:40:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=IM4aTqFey3UVoZNqBugeYBlFGVwesbRHNBvgCNbtc4g=; b=QrS8522tjpgMt/15cffw 9LlJ0Z2j9SzHJ5xNZ452/eAzRdGycq+rLuDvBoGhqfUkcXFLZbGyY4NAp9f7Bq65pfijEs0Lrgwne Ohu+3mLANl1IxaE2r7d/H83+zZjwcCS0L4QItrcX8fa2LIxxyuCz6gVy6sGgrX1pZSjvAnRNKy8yT WPRmVCr46l0IABas9IHNyj6sggah4d2McUqt5hgYcSSC3jskzAKWL/dfzQolEW4UusjhgmpsgJfte tsEPTN49WlvtJBnvSCQFmnvMOaJIVk5ykXzmO/MGWsQh2WsuDd9wrzcIkAwKk7BGg2S/5B3jaRGRq WsDRHXmgYGwigw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbjLN-00063Q-Gz; Mon, 13 Mar 2023 10:40:09 -0400 In-Reply-To: <87pm9cpyps.fsf@gmail.com> (message from =?utf-8?B?TWF0w7o=?= =?utf-8?B?xaE=?= Goljer on Mon, 13 Mar 2023 14:28:31 +0100) 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:304394 Archived-At: > From: Matúš Goljer > Cc: emacs-devel@gnu.org > Date: Mon, 13 Mar 2023 14:28:31 +0100 > > :emergency = fatal > :error = error > :warning = warn > ... = info > :debug = debug > ... = trace > > In Emacs, I guess info is basically `message`, so maybe this "warnings" > appender should `message` info level events. Trace could go to debug or > be ignored. > > I like to have more than one level of "debug", in some situations you > want to only see some narrow part of the code at even higher level. I hope the log will end up in Emacs buffers, or at least that there will be an option to do so. While other logging frameworks are designed to work with programs that leave log files, in Emacs it is customary to have the log in a buffer (and then the user can save that buffer if needed). Direct writes of debug info to files is rare in Emacs (see open-dribble-file and open-termscript as about the only examples I'm aware of). Thanks.