From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: guile-devel@gnu.org
Cc: David Pirotte <david@altosw.be>,
Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: [Guile-Lib PATCH v3 0/7] Make log-msg accept source properties for displaying source location
Date: Thu, 8 Feb 2024 23:50:41 -0500 [thread overview]
Message-ID: <20240209045150.17210-1-maxim.cournoyer@gmail.com> (raw)
In-Reply-To: <20240206034201.28494-1-maxim.cournoyer@gmail.com>
The main change of this series is adding the ability to pass source
properties (such as can be obtained via syntax-source in macros) to
the `log-msg' call, and have the default log formatter use it to
display the source location of the corresponding call. The procedure
name where the log-msg call was made is also resolved and made
available to the log formatter.
It also fixes a few minor issues spotted while working with the
source, and calls `flush-log' at the end of `accept-log' to avoid
long delays caused by the default block buffering when the log traffic
is low.
Changes in v3:
- Use (ice-9 format) for the default-log-formatter
- Use a keyword argument for the source-properties
- Add proc-name argument to default-log-formatter
Changes in v2:
- Relax log-msg typing on source-properties, as it can also be #f
Maxim Cournoyer (7):
configure.ac: Fix typo in message.
Use /bin/sh in update-api script shebang.
tests: guile-library.api: Re-generate.
logging: Allow passing source properties to `log-msg'.
logging: Adjust default log-formatter output.
logging: Make procedure name available to the log formatter.
logging: Call flush-log at the end of accept-log.
configure.ac | 2 +-
src/logging/logger.scm | 107 ++++++++++-----
unit-tests/guile-library.api | 247 ++--------------------------------
unit-tests/logging.logger.scm | 18 ++-
unit-tests/update-api | 2 +-
5 files changed, 98 insertions(+), 278 deletions(-)
base-commit: 8d0196230f80afcf4da33917fe8ae390a1560931
--
2.41.0
next prev parent reply other threads:[~2024-02-09 4:50 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240205194049.7757-1-maxim.cournoyer@gmail.com>
2024-02-06 3:41 ` [Guile-Lib PATCH v2 0/6] Make log-msg accept source properties for displaying source location Maxim Cournoyer
2024-02-06 3:41 ` [Guile-Lib PATCH v2 1/6] configure.ac: Fix typo in message Maxim Cournoyer
2024-02-06 3:41 ` [Guile-Lib PATCH v2 2/6] Use /bin/sh in update-api script shebang Maxim Cournoyer
2024-02-06 3:41 ` [Guile-Lib PATCH v2 3/6] tests: guile-library.api: Re-generate Maxim Cournoyer
2024-02-06 3:41 ` [Guile-Lib PATCH v2 4/6] logging: Allow passing source properties to `log-msg' Maxim Cournoyer
2024-02-06 14:15 ` Maxim Cournoyer
2024-02-06 3:41 ` [Guile-Lib PATCH v2 5/6] logging: Adjust default log-formatter output Maxim Cournoyer
2024-02-06 3:41 ` [Guile-Lib PATCH v2 6/6] logger: Call flush-log at the end of accept-log Maxim Cournoyer
2024-02-09 4:50 ` Maxim Cournoyer [this message]
2024-02-09 4:50 ` [Guile-Lib PATCH v3 1/7] configure.ac: Fix typo in message Maxim Cournoyer
2024-02-09 4:50 ` [Guile-Lib PATCH v3 2/7] Use /bin/sh in update-api script shebang Maxim Cournoyer
2024-02-09 4:50 ` [Guile-Lib PATCH v3 3/7] tests: guile-library.api: Re-generate Maxim Cournoyer
2024-02-09 4:50 ` [Guile-Lib PATCH v3 4/7] logging: Allow passing source properties to `log-msg' Maxim Cournoyer
2024-02-09 4:50 ` [Guile-Lib PATCH v3 5/7] logging: Adjust default log-formatter output Maxim Cournoyer
2024-02-09 4:50 ` [Guile-Lib PATCH v3 6/7] logging: Make procedure name available to the log formatter Maxim Cournoyer
2024-02-09 4:50 ` [Guile-Lib PATCH v3 7/7] logging: Call flush-log at the end of accept-log Maxim Cournoyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240209045150.17210-1-maxim.cournoyer@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=david@altosw.be \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).