logger
SafeWrite to syslog
logger -t <tag> '<message>'
Lets scripts write to syslog/journal — centralize batch start/stop and error records.
Examples
logger -t backup -p user.err 'backup failed'Log as an error
Syntax
logger [-t tag] [-p facility.level] <message>
Before you run it
Appends a log entry only.
Related commands
- journalctlsystemd logs
- syslog hostForward syslog
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store