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: Mon, 13 Mar 2023 14:28:31 +0100 Message-ID: <87pm9cpyps.fsf@gmail.com> References: <875yb7tnyd.fsf@gmail.com> <87bkkyuqkb.fsf@localhost> 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="28225"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 13 15:35:08 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 1pbjGW-00073p-RZ for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Mar 2023 15:35:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbjFp-0005dU-7G; Mon, 13 Mar 2023 10:34:25 -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 1pbiEA-0000K5-0K for emacs-devel@gnu.org; Mon, 13 Mar 2023 09:28:38 -0400 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbiE8-0006z7-71 for emacs-devel@gnu.org; Mon, 13 Mar 2023 09:28:37 -0400 Original-Received: by mail-ed1-x52a.google.com with SMTP id fd5so14828619edb.7 for ; Mon, 13 Mar 2023 06:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678714114; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=1khSlDSbhnA4wsqZyIqYIx2vwSoMlsSNlKX/poVZ9+E=; b=aWQya5RgwBTMrT4gbdjNtRUVv9xuEaTDIw6aJ941u6TfimWj4+TDHyQsN3TGCHshxj yGINaRYeZ5bJX9FJu9GnWHmq+zMu656FKgt1QIxpAGf/HcudEyac1EyFz59Yorvi+e2o tgjqu2wbeBkJnHbZypiSA0Ur7cUOB73xpxhdUZeWWUme2+umbmtH9oiNtw0+smmaCXCG QRQrGD59fqJozJgxbtzM/IooiSSk8GtkhagpLql1gZwR/bzos3y84OVGjQo5uvANAzZQ O72h4RYXtDaPQeCUMij1EdEKVj0HZWaz5FdMd5DNF4zFK0stZ3ntmMkcP1rBLPStpX4Z kf7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678714114; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1khSlDSbhnA4wsqZyIqYIx2vwSoMlsSNlKX/poVZ9+E=; b=66BTHFG4UWr1iO/2IORZFRDBGCT5GL4jUgFyiGGtxNzv7hMXsvpPtxVTdcv1B+cVU3 Xs72e+rH9Gj2OCeNssqLhwzU2uwHTUHhdIVJ8G3BJ6RX947i5FhLspt/+sV0IMwahECB EMB6XNvi8NeTFXSZ78vsZK7UHxRAEtsbN32kp31s6pddHDA7qwW7oc3ThHrx+M5LMvOU 3JTMS8M12osewrmI9b28myzxDw4rmb2Oii2Ywuj/1/rMfS6xZnEbublEcUnN2zgf4i0D xCUKgJRfoAqREkxbgO1o4Wg33J+xWNpnKau7md/+TmmAmzpyZJ+ftbnh3ac0oMTJR/WK ZM2w== X-Gm-Message-State: AO0yUKVL+472xNDtEoAB5PXCcF8J2WLs4VY+uxUGqWqnKJ/2PeHtDJii Iw8ENbgjXmp55NhSwas0shLR1MPIzb3SJg== X-Google-Smtp-Source: AK7set/D4ECFezWzKq+/PZv72NyiAwyY/TcO99SKXiz9Ax/XYpZ+XyNV6w+7Dv/eTJowY03n2lnwew== X-Received: by 2002:a17:906:da82:b0:88f:9f5e:f40 with SMTP id xh2-20020a170906da8200b0088f9f5e0f40mr48369037ejb.68.1678714113742; Mon, 13 Mar 2023 06:28:33 -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 eg56-20020a05640228b800b004fb556e905fsm1956766edb.49.2023.03.13.06.28.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 06:28:33 -0700 (PDT) In-Reply-To: <87bkkyuqkb.fsf@localhost> Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=matus.goljer@gmail.com; helo=mail-ed1-x52a.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: Mon, 13 Mar 2023 10:34:23 -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:304393 Archived-At: > Ihor Radchenko writes: > Just take a look at warnings.el It is just 400LOC. > Ideally, the design of your package should use the existing conventions > on warning levels. Or you may even modify warnings.el to make use of > your package - it would be nice if existing calls of `warn' could be > logged to file, for example. The levels basically correspond, but I can rename them to be the same as in warnings.el :emergency =3D fatal :error =3D error :warning =3D warn ... =3D info :debug =3D debug ... =3D 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. --=20 Best regards, Mat=C3=BA=C5=A1 Goljer