From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.user Subject: Re: Logging in Guile Date: Mon, 13 Jan 2020 13:47:24 -0500 Message-ID: References: <3d636a08-f49d-c06f-2436-1838d3a652f2@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="170969"; mail-complaints-to="usenet@blaine.gmane.org" Cc: guile-user To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Jan 13 19:48:19 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ir4kh-000d1S-DH for guile-user@m.gmane-mx.org; Mon, 13 Jan 2020 19:47:51 +0100 Original-Received: from localhost ([::1]:54420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir4kg-0004fp-67 for guile-user@m.gmane-mx.org; Mon, 13 Jan 2020 13:47:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57334) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir4kU-0004az-3W for guile-user@gnu.org; Mon, 13 Jan 2020 13:47:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir4kS-0005i6-S0 for guile-user@gnu.org; Mon, 13 Jan 2020 13:47:37 -0500 Original-Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]:41792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir4kS-0005gu-Ad for guile-user@gnu.org; Mon, 13 Jan 2020 13:47:36 -0500 Original-Received: by mail-qt1-x829.google.com with SMTP id k40so10001615qtk.8 for ; Mon, 13 Jan 2020 10:47:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PA5/qn0N9wpFwuWznwYzsY5QRKhWoNsmYB8qpWxWJWU=; b=olG28bgcwuv1EHX7G1udlT357ut90LdoULuktR9zrMnIKaypMKbTj6zR6/uqzvi5fS C80siftte90fJ7Rv/KZlVA3jK55qKavhkgkiUMLbk+bLDG/2OZvH40uBdKEkEFpRgkx7 XiQaZ7kKcfT2lsnpwMDTsqr1QXFSSpn+n9FI0jup9JXLopHPB1lwYjWtrq95KuIj9gx4 y89nUNoUZFC9zVcGGsF0bje5eDzXpiZhJZ8RqGLdmfxhTiB12lKv0ePxba1p6AhhW8L+ 0IKwtSQAcfh6NRQlO59I7YAAtnvqVHT3Za9/ahgd6xBL5ruH+aWt1UfsUd97LxapwFcc GrAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PA5/qn0N9wpFwuWznwYzsY5QRKhWoNsmYB8qpWxWJWU=; b=IW87ZRvhuI2j5E/ZYQYBdiV+/6sJDgRV1jbi5fq7zP8Q6fm4VMOGethoWKmdJR+FIb u4yQjLinl3YSKUYVXXAsCRM+hPgH+2BnBIhgeZhs05xMHR2KUGHWhAjIhq+pvUe2ji4Q G0d8mKi66aKRJoTB2s3kNH+B56CVU/yc0B5yci0gqKndcOTcNoNlx+EfkL1PMuheVbWC ZPKxOmGnXAGc/T5cx3pr9FIMPvfNNQIVKP5jTcLK68S03It3DEHnC0f+IR8bTaM/iYD5 u8rKkwxa35E8zsf1nmvZSqOUFZKQVNMCDMmggtKdfBx/CpW3sqqKA/DsV9eO9I5lFWIQ 5xmg== X-Gm-Message-State: APjAAAWiB8rYYdIqrm/iymXkfwePfHKmXwEtLGdRc1TyvfrQaekBXRTf pdIWwsDav24HEh63q1Dr7ra8GLFKbx1IQFvCIU122w== X-Google-Smtp-Source: APXvYqxCtlY5Yla5yd6bo8DgNjpvEVUjB4XkV8cqdQJI81D7ZjHYrHn5f7AT5GTZzPz047M4UHE/hEQ8cLWGNwFpNQ8= X-Received: by 2002:ac8:3490:: with SMTP id w16mr6241qtb.56.1578941255488; Mon, 13 Jan 2020 10:47:35 -0800 (PST) In-Reply-To: <3d636a08-f49d-c06f-2436-1838d3a652f2@posteo.de> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::829 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:16048 Archived-At: I have a rough proposal now at < https://bitbucket.org/cowan/r7rs-wg1-infra/src/default/SyslogCowan.md>. It depends on either being able to send TCP or UDP packets or preferably to call the Posix API through the FFI. It is very basic and leaves log rotation etc. to the syslog infrastructure. On Mon, Jan 13, 2020 at 1:10 PM Zelphir Kaltstahl < zelphirkaltstahl@posteo.de> wrote: > Hi Guile Users! > > Is there any library for logging in Guile? > > What I imagine is something, where I can log messages of various levels, > like debug, info, error and such. Currently I am using display and > simple-format for all the things, but it would be nice to be able to run > a program and give it some log level, so that only the log messages of > that level or above in importance are shown. Then I could leave all my > logging in my code and set it to debug level or, if intended to be seen > for the user, set it to info level, or if there really is an error, I > could set it to error level. > > On a quick search I could not find anything. > > Regards, > Zelphir > > >