logger - Log messages
Synopsis
logger [-is] [-f file] [-t tag] [message ...]
Description
The logger utility provides a shell command interface for writing messages to the QHST system log. If message is not specified, and the -f flag is not provided, standard input is logged.
Options
- -i
- Log the process id of the logger process with each line.
- -s
- Log the message to standard error, as well as the system log.
- -f
- Log the specified file.
- -t
- Mark every line in the log with the specified tag.
Exit status
- 0 on success
- >0 if an error occurs.
Examples