Logger
lastmod 2026-11-10created 2016-06-152 edits
logger is a command-line tool for writing messages to the system log (syslog) from a shell or script. -t sets the tag (program name) and -p sets the facility and priority, such as user.notice; messages pass through journald or rsyslog and accumulate in log files such as /var/log/syslog. It is used to record the execution of cron jobs or wrapper scripts in the standard logging system, and -n can send messages to a remote syslog server.