backend: switch syslog implementations #19
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.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.How does that work on OpenRC systems like Alpine? (And more importantly do we have any users running on that?)
It works just fine, use
output_log
oroutput_logger
with rotations.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)
.