From: "Matúš Goljer" <matus.goljer@gmail.com>
To: Thomas Koch <thomas@koch.ro>, Ruijie Yu <ruijie@netyu.xyz>
Cc: emacs-devel@gnu.org
Subject: Re: New (only?) extensible logging package for Emacs
Date: Mon, 13 Mar 2023 18:25:42 +0100 [thread overview]
Message-ID: <87cz5cmull.fsf@gmail.com> (raw)
In-Reply-To: <1152386106.488629.1678718629900@office.mailbox.org>
Thomas Koch <thomas@koch.ro> writes:
> Besides the backwards compatible /dev/log, journald also listens to a more featureful native logging API:
> https://systemd.io/JOURNAL_NATIVE_PROTOCOL/
>
> As I understand, the journald API allows logs messages with more attached information, e.g. origin of the message in the source code, a message ID or a link to documentation.
Interesting, and pretty simple. I've implemented the journald appender,
you can review it on github.
Mar 13 18:21:55 parmenides emacs-lgr[516715]: [2023-03-13T17:21:55+0000] (FATAL) local.journald - Fatal log to journald nil
Mar 13 18:21:56 parmenides emacs-lgr[516715]: [2023-03-13T17:21:56+0000] (ERROR) local.journald - Error log to journald nil
Mar 13 18:21:56 parmenides emacs-lgr[516715]: [2023-03-13T17:21:56+0000] (WARN) local.journald - Warn log to journald nil
Mar 13 18:21:57 parmenides emacs-lgr[516715]: [2023-03-13T17:21:57+0000] (INFO) local.journald - Info log to journald nil
Mar 13 18:21:57 parmenides emacs-lgr[516715]: [2023-03-13T17:21:57+0000] (DEBUG) local.journald - Debug log to journald nil
Mar 13 18:21:58 parmenides emacs-lgr[516715]: [2023-03-13T17:21:58+0000] (TRACE) local.journald - Trace log to journald nil
(the timestamps are superfluous but can be removed obviously, I just
used the default message layout)
Some of the meta fields (CODE_*) are also supported but it's super easy
to add more.
--
Best regards,
Matúš Goljer
next prev parent reply other threads:[~2023-03-13 17:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-11 13:30 New (only?) extensible logging package for Emacs Matúš Goljer
2023-03-11 15:27 ` Thomas Koch
2023-03-12 19:13 ` Matúš Goljer
2023-03-13 4:35 ` Ruijie Yu via Emacs development discussions.
2023-03-13 13:23 ` Matúš Goljer
2023-03-13 14:43 ` Thomas Koch
2023-03-13 17:25 ` Matúš Goljer [this message]
2023-03-15 0:56 ` Björn Bidar
2023-03-12 12:01 ` Ihor Radchenko
2023-03-13 13:28 ` Matúš Goljer
2023-03-13 14:39 ` Eli Zaretskii
2023-03-13 15:59 ` Matúš Goljer
2023-03-13 16:47 ` Eli Zaretskii
2023-03-13 17:27 ` Matúš Goljer
2023-03-13 17:28 ` [External] : " Drew Adams
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/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cz5cmull.fsf@gmail.com \
--to=matus.goljer@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=ruijie@netyu.xyz \
--cc=thomas@koch.ro \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).