Send deploy-done with facility local0 and priority notice.
Which command is appropriate?
logger -p FACILITY.PRIORITY selects the syslog facility and severity.
Detailed explanation
logger -t local0.notice deploy-doneIncorrect. -t sets a tag, not facility.priority.
logger -f local0.notice deploy-doneIncorrect. -f specifies an input file.
logger -p local0.notice deploy-doneCorrect. -p local0.notice selects the requested fields.
logger -s local0.notice deploy-doneIncorrect. -s duplicates output to stderr.
Try it yourself
An example you can run in a temporary verification environment.
logger --help | grep -E -- '-p,|--priority'Expected result
priorityを指定するhelp行Key points
- -p selects priority
- local0 is a facility
- notice is a severity
Notes
- Environment: util-linux logger help / ログ送信なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Syslog facility and priority
Metadata that classifies a message source and its severity.
Journal persistence
Whether systemd journal data survives a reboot and where it is stored.
Log rotation
A process that retains, renames, compresses, or removes log generations.