-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add priority on journald log format #950
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't test this on my mac, but mapping looks good to me
Tried it out, not 100%:
That warning should be lavinmq/src/lavinmq/launcher.cr Line 83 in 7f85d32
|
7c30a80
to
2b4e8be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice with the JournalErrorWriter
!
|
Co-authored-by: Jon Börjesson <[email protected]>
56bb517
to
67d364c
Compare
Another way is to use |
We can also set the default prioity level for stdout/stderr with the |
WHAT is this pull request doing?
Adds priority to journald formatter
HOW can this pull request be tested?
LOG_LEVEL=DEBUG ./bin/lavinmq -D /tmp/amqp 2>&1 | systemd-cat -t lavinmq
journalctl -t lavinmq --output-fields=PRIORITY,MESSAGE