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

Examples
  1. Send the file "test.output.log" to the system log.
    logger -f test.output.log
    
  2. Send a message to the system log and standard error, and include a tag.
    logger -s -t 'Tag your are it' My message is simple