logger — Makes entries in the system log file.


Mr Vijay Kumar (Ex GLUG-Trichy Co-Ordinator) has written a tutorial
about GtkTextView Widget and CVSCheat Sheet.
URL: http://www.bravegnu.org/

One Day One Command

logger — Makes entries in the system log file.


Logger is a shell command interface to the syslog system log module.
It can be used to makes entries in the system log from the shell
scripts. By default, messages will be logged in /var/log/messages.


$ logger MyLog1 — Log the message in syslog.

$ logger -i MyLog2 — Log the message with PID.

$ logger -s MyLog3 — Log the message in stderr and syslog.

$ logger -t MYTAG MyLog4 — Log the message with specified Tag.

$ logger -p user.panic MyLog5 — Log the message with priority.

Read the man page for more priority Facility and Level details.

Read: man logger

Leave a Reply

Your email address will not be published. Required fields are marked *