You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
The default logger logs superflous info when logging to journald (of systemd fame):
Sep 06 12:04:53 day go-neb[2212178]: time="2021-09-06T12:04:53+08:00" level=info msg="Inserted 1 clients"
Describe the solution you'd like
journald handles both the level and timestamp, so all we really need is:
Sep 06 12:04:53 day go-neb[2212178]: msg="Inserted 1 clients"
It's possible to detect if you're running under systemd (and thus logging to journald) by checking for the environment variable INVOCATION_ID.
Describe alternatives you've considered
An alternative is to do proper logging of structured data to journald when
detected which would be nice (and which would also solve all of this), but just
getting rid of the duplicate information would be an excellent first step.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is your feature request related to a problem? Please describe.
The default logger logs superflous info when logging to journald (of systemd fame):
Describe the solution you'd like
journald handles both the level and timestamp, so all we really need is:
It's possible to detect if you're running under systemd (and thus logging to journald) by checking for the environment variable INVOCATION_ID.
Describe alternatives you've considered
An alternative is to do proper logging of structured data to journald when
detected which would be nice (and which would also solve all of this), but just
getting rid of the duplicate information would be an excellent first step.
The text was updated successfully, but these errors were encountered: