emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New (only?) extensible logging package for Emacs


From: Matúš Goljer
Subject: Re: New (only?) extensible logging package for Emacs
Date: Mon, 13 Mar 2023 18:25:42 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]