backend: switch syslog implementations #19

Closed
opened 2022-07-21 00:03:49 +00:00 by toast · 3 comments
Owner

https://www.npmjs.com/package/syslog-pro is absolutely horrifying and explains why it's unusable at large.
It's only used in packages/backend/src/services/logger.ts so should be easy to do minus config stuff.

https://www.npmjs.com/package/syslog-pro is absolutely horrifying and explains why it's unusable at large. It's only used in `packages/backend/src/services/logger.ts` so should be easy to do minus config stuff.
toast self-assigned this 2022-07-21 00:03:49 +00:00
toast added this to the (deleted) project 2022-07-21 00:03:49 +00:00
norm referenced this issue from a commit 2022-08-28 14:46:46 +00:00
Owner

Kinda wonder if we really even need to use syslog these days. I imagine most will just let the server output to stdout/stderr and have that captured by systemd or some other logging daemon.

Kinda wonder if we really even need to use syslog these days. I imagine most will just let the server output to `stdout`/`stderr` and have that captured by systemd or some other logging daemon.
Contributor

How does that work on OpenRC systems like Alpine? (And more importantly do we have any users running on that?)

How does that work on OpenRC systems like Alpine? (And more importantly do we have any users running on that?)
Author
Owner

How does that work on OpenRC systems like Alpine?

It works just fine, use output_log or output_logger with rotations.

And more importantly do we have any users running on that?

The thing with the current syslog implementation is that it's remote-only (and not many things beyond rsyslog and syslog-ng (both of which must be explicitly configured to do that) actually listen on those ports).
If we were to replace it, I'd like to use syslog(3).

> How does that work on OpenRC systems like Alpine? It works just fine, use `output_log` or `output_logger` with rotations. > And more importantly do we have any users running on that? The thing with the current syslog implementation is that it's remote-only (and not many things beyond rsyslog and syslog-ng (both of which must be explicitly configured to do that) actually listen on those ports). If we were to replace it, I'd like to use `syslog(3)`.
Johann150 added the
upkeep
label 2022-12-23 10:24:15 +00:00
Johann150 removed this from the (deleted) project 2022-12-23 10:24:22 +00:00
Johann150 referenced this issue from a commit 2023-05-19 21:15:50 +00:00
Sign in to join this conversation.
No Label
feature
fix
upkeep
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FoundKeyGang/FoundKey#19
No description provided.